Search the Community
Showing results for tags 'onthrowupdate'.
-
Sprite Animation (via background-position) while throwing
janchristoph.schumm posted a topic in GSAP
Hi everyone, I'm trying to get a TimelineMax sprite animation of an SVG-Background to play while throwing the container. Basically, I was planning on using "getVelocity" with "onThrowUpdate" to trigger the playing of the timeline/the movement of the background-image from the start position to the end position (which is calculated via a function), if progress of the timeline = 0. Unfortunately, I can't make it work properly. At first, the timeline/sprite-animation started only after the throw-movement had stopped. Now, in the codepen, the animation isn't working at all – I figured out, that it has to do with the "backgroundPosition: getClip(9, 4)" in the second "fromTo"-Tween of the timeline, but I can't figure out why. What am I missing out? Any help is very much appreciated!!! THX!- 1 reply
-
- draggable
- sprite animation
-
(and 1 more)
Tagged with:
-
When using Draggable, the same item that has a passing hitTest with onDragEnd won't work with onThrowUpdate or onThrowComplete. Is this intended?
- 1 reply
-
- onthrowcomplete
- onthrowupdate
-
(and 2 more)
Tagged with: