animation transform

20 views
Skip to first unread message

Rudy

unread,
Dec 17, 2011, 2:51:42 PM12/17/11
to raphaelgwt
Hi guys,

I'd just started using RaphaelGWT and I can't figure out how to use
animation with transform.

I've successfully manage to use translation like:
Attr attr = new Attr();
image.animate(attr.x(x0+dx), ms, "elastic");

Now I'd like to scale an image and I've tried the following w/o
success:
image.animate(attr.scale(fx, fy), 500);

So I've investigate a little bit on SVG and found this:
http://www.w3.org/TR/SVG/animate.html#AnimateTransformElement
butI can't figure out how to pass the transform parameters into the
attr... maybe something like
attr.put("transform", ???)

is there a way to pass the XML parameters?

Looking forward to get a feedback

cheers

Geoff Speicher

unread,
Dec 29, 2011, 10:02:38 AM12/29/11
to rapha...@googlegroups.com
Sorry for the slow response, but this is something I haven't tried yet.  Have you tried replacing your "???" below with a transform string as documented here:

    http://raphaeljs.com/reference.html#Element.transform

Geoff
Reply all
Reply to author
Forward
0 new messages