Skip to content
Browse files

Use translation animation for area of parallelograms hint to be compa…

…tible with old Raphael
  • Loading branch information...
1 parent 1b514bf commit 30f7605c28149fd348efc9cc7c28df3b7218649f @osnr osnr committed Jul 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 exercises/area_of_parallelograms.html
View
4 exercises/area_of_parallelograms.html
@@ -49,7 +49,7 @@
}
},
animHint: function() {
- slice.animate({ transform: "T" + (-B * 30) + ",0" }, 1000, "easeOut");
+ slice.animate({ translation: (-B * 30) + ",0" }, 1000, "easeOut");
if (SH < 0) {
var st = graph.raphael.set();
@@ -58,7 +58,7 @@
$(baseL).fadeOut();
$(heightL).fadeOut();
- st.animate({ transform: "T" + (SH * 30) + ",0" }, 1000, "easeOut", function() {
+ st.animate({ translation: (SH * 30) + ",0" }, 1000, "easeOut", function() {
baseL = graph.label([B/2 + SH, 0], "\\color{" + KhanUtil.ORANGE + "}{b = " + B + "\\text{ " + UNIT + "}}", "below");
heightL = graph.label([B + SH, H/2], "\\color{" + KhanUtil.BLUE + "}{h = " + H + "\\text{ " + UNIT + "}}", "right");
$(baseL).hide().fadeIn();

0 comments on commit 30f7605

Please sign in to comment.
Something went wrong with that request. Please try again.