I want to create a parallax effect in a Draggable instance, but need some help.
I already did setup a codepen with Draggable instance, where you can drag a space background. In front of the space background I have an image of a rocket.
Is there a way to add a different drag speed/delay/value to the rocket so it looks like being in front of the background?
GSAP Draggable instance with parallax effect on object
in GSAP
Posted
I want to create a parallax effect in a Draggable instance, but need some help.
I already did setup a codepen with Draggable instance, where you can drag a space background. In front of the space background I have an image of a rocket.
Is there a way to add a different drag speed/delay/value to the rocket so it looks like being in front of the background?
See the Pen MWZJoWW by Tom51north (@Tom51north) on CodePen