Jump to content
Search Community

How to pin fixed item with ScrollSmoother active?

chailandau test
Moderator Tag

Recommended Posts

I haven't been able to find this exact scenario. I know I'm missing something, I tried cobbling together some things I saw on the forums.

 

Basically, I want the black box to be pinned as a fixed item via ScrollTrigger (that's why I have the trigger as the header, I just want it immediately pinned until I release it). 

 

Because I'm using ScrollSmoother I can't seem to have the item in a fixed position without being outside of the container, but I need it inside.

 

Any suggestions or directions to explore? Thanks.

See the Pen mdXOEJQ by chailandau (@chailandau) 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...