javascript - How do I get the properties and destination values of a running Jquery animation? -
given element $myelement
actively being animated, how can determine properties affected animation, , final destination, without interfering running animation?
example:
$myelement.css('height','200px').slidedown(2000); $myelement.getanimationproperties(); // return `{'height':'200px'}`
obviously, call getanimationproperties()
in different scope code starts animation (mutation observer). allow second autonomous plugin needs know final animation property value (like height) work properly, without interfering original plug-in.
Comments
Post a Comment