anton123
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by anton123
-
-
Add "once: true" to your scrollTrigger. The elements will stay visible if you scoll back up
scrollTrigger: { trigger: ".section-second", pin: true, start: "top top", end: "+=500", scrub: 1, once: true }
- 1
- 1
ScrollTo always starts from the top of the page
in GSAP
Posted
Hello,
The first 2 panels should be reached via ScrollTo, but the second ScrollTo always starts from the top of the page. How can I fix this?
See the Pen jOqOazp by anton234 (@anton234) on CodePen