Jump to content
Search Community

GSAP ScrollTrigger pinning and smooth scroll together

Saraf test
Moderator Tag

Recommended Posts

Hello devs , i'm trying to implement smooth scroll and scrollTrigger pinning on same view port. As the smooth scroll works by disabling scroll and translating -Y , pinned div also translates instead of pinning.

Reference

Can anyone give me a solution , would be helpful. Thanks in advance.

See the Pen LQNZgv by wooooosky (@wooooosky) on CodePen

Link to comment
Share on other sites

  • 1 month later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...