W3C home > Mailing lists > Public > public-fx@w3.org > October to December 2015

[web-animations] state and 2nd animate parameter

From: Jonathan Wilkes <jancsika@yahoo.com>
Date: Mon, 12 Oct 2015 20:16:45 +0000 (UTC)
To: "public-fx@w3.org" <public-fx@w3.org>
Message-ID: <800785824.2546222.1444681005108.JavaMail.yahoo@mail.yahoo.com>
Hi web animators,Two questions:1) I have played around with the element.animate method in Chrome, with an image "i":var my_animation = i.animate([ { width: "10px" }, { width: "100px" } ], 1000);
When the animation is finished, is there a shortcut to set the "width" property of 
the element to the final value "100px"?  Right now it looks like it just resets to 
whatever the property was before the animate method was called.  (Currently 
I'm using the onfinish callback to achieve this.)
2) For element.animate(param1, param2), is there a list somewhere of all the 
possible names that can appear in the param2 object?  (name as in name:value 
pairs).
Thanks,Jonathan
Received on Tuesday, 13 October 2015 14:36:18 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 13 October 2015 14:36:19 UTC