Jump to content
Search Community

GSAP + Locomotive Scroll Sticky Header not working

youcci test
Moderator Tag

Go to solution Solved by ZachSaucier,

Recommended Posts

Hello Guys,

i'm currently working on a personal site and i was planning on using Locomotive Scroll with GSAP. I was intending to use a sticky/fixed Header and it's for some reason not working. Also i wanted to use mix-blend-mode because i'm switching between black and white backgrounds. So basically i wanted to recreate this codepen: 

See the Pen yLarQOa by martendebruijn (@martendebruijn) on CodePen

 but with Locomotive Scroll and GSAP.

 

My attempt: 

 

Can someone please help me?

Thank you

See the Pen gOLXgaB by youcci (@youcci) on CodePen

Link to comment
Share on other sites

  • Solution

Hey youcci and welcome to the GreenSock forums.

 

You don't need ScrollTrigger to recreate that sort of effect with Locomotive Scroll... But I showed an example of how you could do so in this pen (if you wanted to add additional other scroll based effects - the commented out section):

See the Pen eYBerwQ?editors=1010 by GreenSock (@GreenSock) on CodePen

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