Search the Community
Showing results for tags 'glitches'.
-
Hi, I have an element that rotates infinitely 360 degrees using GSAP. I've also implemented direction-based rotating on scroll using ScrollTrigger. It works great initially but once you begin to scroll either up or down and the scrolling stops, the element jumps to its original rotating position and begins rotating again which isn't ideal. This is the code that I'm using: gsap.to(this.rotatingText, {rotation: 360, duration: 40, repeat: -1}); var rotate = gsap.timeline({ scrollTrigger: { trigger: "html", scrub: 0.2, start: "top top", end: "+=10000" } }).to(this.rotatingText, { rotation: 360 * 5, duration: 1, ease: "none" }) Ideally, I would love it to, be that after scrolling, it gets the element's current rotated position and then begins rotating again from that point. You can view a video screenshot of the issue here: https://www.veed.io/view/6de5e2cc-072e-45d7-bb30-d015766ae546?sharingWidget=true&panel=share Any help would be greatly appreciated. Thanks
- 5 replies
-
- scrolltriger
- rotate
-
(and 1 more)
Tagged with:
-
I started GSAP since few days but stuck at a problem. The animation is jarring and has glitches in full mode in Codepen. But not working fine in normal mode in all browsers except Safari. If you guys can help please help? Codepen link: https://codepen.io/satyamdev/full/OZYzMj/