From 64f163256a55a6444f0c3d8313998ec3fa34a8a0 Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Wed, 15 Jul 2015 23:09:35 +0300 Subject: Final Flickering Fix™ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/button.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'client/button.js') diff --git a/client/button.js b/client/button.js index 62f2a91..9bcc542 100644 --- a/client/button.js +++ b/client/button.js @@ -63,9 +63,11 @@ function animate() { $('li#step2').addClass('active'); _.each(Session.get('photos'), function(x, i) { _.delay(function() { - Effects.pixelate(x.id); - $('#img-'+x.id).hide(); $('#canvas-'+x.id).show(); + Effects.pixelate(x.id); + _.delay(function () { + $('#img-'+x.id).hide(); + }, 100); }, 400 * i); }); }, delay + 2000); @@ -80,7 +82,6 @@ function animate() { _.each(Session.get('photos'), function(x, i) { _.delay(function () { Effects.colorize(x.id); - $('#img-'+x.id).hide(); $('#canvas-'+x.id).show(); }, 400 * i); }); -- cgit v1.3.1