Jump to content
Search Community

ScrollTrigger on fixed element

stefanopeschiera test
Moderator Tag

Recommended Posts

 

Since your footer would always be in place though, you'd have to adjust it accordingly if you had more sections before the footer if you were to go the route shown above.

 

See the Pen 10bcf29e54733eb38eedf938289aa04f by akapowl (@akapowl) on CodePen

 

 

 

So it would probably be better for flexibility to make it trigger dependent on the last section before the footer. Something like this maybe:

 

See the Pen 99be61fcbfc56198d7b01dacb29b177c by akapowl (@akapowl) on CodePen

  • Like 1
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...