From fc62d96c5150450c9c4639e524d8c77fa6128964 Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Sun, 21 Jun 2015 18:55:11 +0300 Subject: Flicker fix for real --- client/button.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'client/button.js') diff --git a/client/button.js b/client/button.js index f2b2d71..7f71fda 100644 --- a/client/button.js +++ b/client/button.js @@ -19,9 +19,9 @@ function animate() { $('li#step2').addClass('active'); _.each(Session.get('photos'), function(x, i) { _.delay(function() { - $('#img-'+x.id).hide() Effects.pixelate(x.id); - $('#canvas-'+x.id).show() + $('#img-'+x.id).hide(); + $('#canvas-'+x.id).show(); }, 400 * i); }); }, delay + 2000); @@ -35,9 +35,9 @@ function animate() { $('li#step3').addClass('active'); _.each(Session.get('photos'), function(x, i) { _.delay(function () { - $('#img-'+x.id).hide() Effects.colorize(x.id); - $('#canvas-'+x.id).show() + $('#img-'+x.id).hide(); + $('#canvas-'+x.id).show(); }, 400 * i); }); }, delay + 2000); -- cgit v1.3.1