Raphael js library: problems with animateAlong in IE7
Posted
by Andrei
on Stack Overflow
See other posts from Stack Overflow
or by Andrei
Published on 2010-05-13T22:07:40Z
Indexed on
2010/05/13
22:14 UTC
Read the original article
Hit count: 490
JavaScript
|raphael-js
Hi there,
I'm having trouble making a simple shape move along a path in IE7 (the only version of IE I tried, actually). The following code works fine in chrome and firefox, but not IE. I couldn't find an obvious reason, has anybody seen something similar?
canvas.path(rPath.path).attr("stroke", "blue");
var circle = canvas.circle(rPath.startX, rPath.startY, 5);
circle.animateAlong(rPath.path, 3000, true);
My rPath variable has the path and the starting point coordinates.
Microsoft script debugger points to this line as the one where the code breaks:
os.left != (t = x - left + "px") && (os.left = t); (line 2131 inside the uncompressed raphael.js script file, inside Element[proto].setBox = function (params, cx, cy) {...})
Any ideas? Any experience (good or bad) with raphael's animateAlong in IE7?
TIA, Andrei
© Stack Overflow or respective owner