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
Post a Comment