Search the Community
Showing results for tags 'currentAnimationFrame'.
-
Hello Team, It is really impressive framework for animating html elements and so glad to use such aamazing framework. I'm working with PIXIJS with Gsap as animation plugin. I was in tuff position when implementing dragging and syncing video with current time. I had a read through threads in GSAP platform, and the attached PEN is fork of the example available. which is exactly what I want but in Gsap V3. Would be helpful if someone could suggest in GSAP V3, using Timeline, can this be achieveable and any guideliness for me to implement using Timeline. Appreciate your reply. Thanks Irfan
-
Hello I'm trying to tween a value of an object like this: var _obj = {v:0}; TweenMax.to(_obj, 1, {v:100, ease: Linear.easeNone, onUpdate:onTweenUpdate}) } function onTweenUpdate () { console.log(_obj.v) } This works fine but what it actually needs are rounded values. I thought "roundProps" would come in handy but the following change causes an error in TweenMax.js: TweenMax.to(_obj, 1, {v:100, roundProps:"v", ease: Linear.easeNone, onUpdate:onTweenUpdate}) Is this code wrong or does "roundProps" not work that way? What I actually would like to do with it is tweening the "currentAnimationFrame" of an EaselJS BitmapAnimation. I used the "onTweenUpdate" function from the example above together with Math.round() as a workaround. But it would be much nicer to tween the currentAnimationFrame directly. Any ideas anyone? Cheers Henry
- 4 replies
-
- roundProps
- EaselJS
-
(and 2 more)
Tagged with: