diff options
| author | Yuval Adam <yuval@y3xz.com> | 2015-07-15 23:09:35 +0300 |
|---|---|---|
| committer | Yuval Adam <yuval@y3xz.com> | 2015-07-15 23:09:35 +0300 |
| commit | 64f163256a55a6444f0c3d8313998ec3fa34a8a0 (patch) | |
| tree | 4fcb355ff65eaaee5ec4a37f3e901f6480645252 /client/button.js | |
| parent | 2893db3a20ed97b2036884c354d9e9e6d797d666 (diff) | |
Final Flickering Fix™
Diffstat (limited to 'client/button.js')
| -rw-r--r-- | client/button.js | 7 |
1 files changed, 4 insertions, 3 deletions
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); }); |
