summaryrefslogtreecommitdiff
path: root/client/button.js
diff options
context:
space:
mode:
authorYuval Adam <yuval@y3xz.com>2015-06-17 21:36:44 +0300
committerYuval Adam <yuval@y3xz.com>2015-06-17 21:36:44 +0300
commit651491ca50532e8b7cf497c072cf909545ef8a3e (patch)
tree560c0d9502f2a039ae6180aac1671aebe8ba6096 /client/button.js
parent161734857bdf3c3a382a2740a58f9065c929990f (diff)
averageColor() also animated
Diffstat (limited to 'client/button.js')
-rw-r--r--client/button.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/client/button.js b/client/button.js
index f759887..2916938 100644
--- a/client/button.js
+++ b/client/button.js
@@ -42,6 +42,14 @@ function animate() {
_.delay(function() {
Effects.average();
+ }, delay);
+
+ _.delay(function() {
+ _.each(Session.get('photos'), function(x, i) {
+ _.delay(function () {
+ Effects.averageColor(x.id);
+ }, 400 * i);
+ });
}, delay + 2000);
}