Using a predefined css rule as an animation parameter in GSAP Posted February 6, 2013 Hi all, I'd like to know if its possible to use TweenMax/Lite with a predefined CSS rule, something like this: .someClass { left: 20px; top: 50px; } TweenLite.to( myDomElement, 0.5, { someClass }); In this way I could lay out a bunch of scenarios and animate to them as needed. Thanks!
Using a predefined css rule as an animation parameter
in GSAP
Posted
Hi all,
I'd like to know if its possible to use TweenMax/Lite with a predefined CSS rule, something like this:
.someClass
{
left: 20px;
top: 50px;
}
TweenLite.to( myDomElement, 0.5, { someClass });
In this way I could lay out a bunch of scenarios and animate to them as needed.
Thanks!