Jump to content
Search Community

Vertical scroll for divs inside a container

john002 test
Moderator Tag

Recommended Posts

Hey, @john002 welcome to the forum.

 

Ideally all you need is add scrollTrigger only for coffee section and pin that section. Sections above and below will follow unless you wanna do something different for those sections.

Right Now you have scrollTrigger for all the sections I am not sure why? and inside scrollTrigger object you are actually targeting the box-container. 
I hope I understood your problem right. 

See the Pen KKyGWgp??editors=1010 by tripti1410 (@tripti1410) on CodePen

Link to comment
Share on other sites

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...