Jump to content
Search Community

SimpleEmotion

Members
  • Posts

    2
  • Joined

  • Last visited

SimpleEmotion's Achievements

0

Reputation

  1. 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: var timeline = new TimeLine() .to(...) .add(tweenStuff, "-=.5") .from(...) function tweenStuff(){ var progress = timeline.progress(); ..dostuff.. window.requestAnimationFrame(tweenStuff) }
  2. 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")
×
×
  • Create New...