[jQuery] Re: SVG animation question

2008-07-10 Thread Vez
I have made some progress, but now I get this zoom in effect every time I try to pan. jQuery.fx.step.pan = function(fx) { if(fx.state == 0) { fx.end = fx.options.curAnim.pan fx.start = fx.elem.attributes.getNamedItem('viewBox').nodeValue.split(' ')

[jQuery] Re: SVG animation question

2008-07-10 Thread Vez
Hey, guys. I'd just like to let you know that I solved the problem and it's working perfectly now! The previous version had two bugs. The values in fx.start were strings and not numbers, so they are now converted with parseFloat. The other problem was that I forgot to add in the starting values wh