SimpleEmotion
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by SimpleEmotion
-
-
Is there anyway to bind a function to a tweenline that will be called successively over a period of time.
I am aware of the `.add(function(){..dostuff..})` syntax, but unfortunately this only calls the function once.
Something like this would suffice:
myTimeline.bind(1.5, function(e){ something = dostuff(e)}, "-=.5")
Binding functions to timeline
in GSAP
Posted
Correct me if I am wrong. But doesn't TweenLite do some optimizing by batching all dom interactions to a single requestAnimationFrame Update?
The goal in binding a function to a Tweenline would be to gain the performance optimization of a signally wrapped function bound to requestAnimationFrame.
If this is not currently a part of the Tweenline API I assume the next best option would be: