Thanks Charles, and yes I was aware that you can reset the transform,
but in my case the buttons had already undergone a transformation to
correctly position them on the page (perhaps I should have pointed
that out). Consequently resetting the transformation would send them
back to their origins so for my purposes I needed to record their
current transformation before animating. However it would also have
been better if I had used the transform append scale string as shown
here so that it was animated as with the original Raphael 1.52.
// Hover navigation buttons
arrowback.hover(function(){
tstr=this.transform();// record transformation string
this.scale(1.2, 1.2);
this.animate({
transform: "...s1.2 1.2",
fill: calcellbgd_hover
}, 500, ">");
}, function(){
this.stop();//if moveout stop animation early
this.attr("fill", "#FFFFFF"); this.transform(tstr); // and
restore original state
});
On Jul 23, 3:36 pm, charles thomas <
charles...@yahoo.com> wrote:
> DOH
>
> This is in reply to your original query.
>
> As you know I "reviewed" the Beta some time ago but obviously missed a whole bunch of stuff.
> The query you raised hilights the fact that scale, translate and rotate ("rotation") do not exist anymore in 2.0 as attributes but a new "transform" attribute does.
>
> The only point you actually missed, I think, was that you can reset the transform before each and every call to animate.
>
>
http://www.irunmywebsite.com/raphael/additionalhelp.php?v=2&q=element...
>
> Thanks for your inputs (Also prievious about Text in 2 for IE8)
>
> Regards Charles
>
> ________________________________
> From: DOH <
phildejo...@gmail.com>
> To unsubscribe from this group, send email to
raphaeljs+...@googlegroups.com.