Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add some color when adding blocks

  • Loading branch information...
commit 1e4378c43ed36983f9b94a4465845489b206e5ce 1 parent 4d249b5
@ss3 ss3 authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 exercises/pile_patterns.html
View
4 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) {
Please sign in to comment.
Something went wrong with that request. Please try again.