CamelCase Posted April 1 Posted April 1 Hello, I need help with an abnormal scrollbar behavior. The gauge teleports in all directions when scrolling instead of scrolling from left to right and vice versa depending on the scroll. I've put an example of the problem on codepen. Have a nice day, Laura See the Pen by pen?template=raNqgdy (@pen?template=raNqgdy) on CodePen.
Solution mvaneijgen Posted April 2 Solution Posted April 2 Creating a timeline with both your tween on it and then using the position parameter will be much easier for this, then your tween just play at the same time and you don't need to do fancy onUpdate calculations. Also note if you want no ease you'll set ease: "none", see the see ease visualizer https://gsap.com/docs/v3/Eases/ Hope it helps and happy tweening! See the Pen XJWoYzm?editors=0010 by mvaneijgen (@mvaneijgen) on CodePen. 2
CamelCase Posted April 2 Author Posted April 2 Hello, Thanks for your help in synchronizing the two elements with the timeline
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now