Permalink
Browse files

Add some color when adding blocks

  • Loading branch information...
1 parent 4d249b5 commit 1e4378c43ed36983f9b94a4465845489b206e5ce @ss3 ss3 committed Aug 10, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 exercises/pile_patterns.html
@@ -147,7 +147,9 @@
var showStep = function(step) {
while (currStep < step) {
// add blocks
- steps[currStep + 1].animate({ "opacity": 1 }, 200);
+ steps[currStep + 1].attr("fill", "#ddddff");
+ steps[currStep + 1].animate({ "opacity": 1 }, 300);
+ steps[currStep + 1].animate({ "fill": "#ffffff" }, 200);
currStep++;
}
while (currStep > step) {

0 comments on commit 1e4378c

Please sign in to comment.