greensock - Green Sock GSAP TweenMax, settle on last frame -


i have animated spritesheet uses following code:

 tweenmax.to(".globe__globe", 5, { backgroundposition:'0 -67280px', ease:steppedease.config(145)}); 

this means on 5 seconds, background position animated. steppedease function defines there 145 frames. works expected, @ end of animation resets first frame. need end on last frame. help?

turns out frames zero-indexed if knocked 1 frames-worth height off background position , reduced frames 145, fixes it.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -