Jump to content
Search Community

Integation of locomotive js with gsap is not working please help

Ram Ji test
Moderator Tag

Recommended Posts

Hi I'm new in this web development. I'm learning things right now.

This codepen is fully working but when i apply locomotive js in this js file it stops me from scrolling i don't even see the scroll bar. I want to achieve this codepen animation which also woks with the locomotive js. Please help me and explain how it works. Thanks

 

One more thing, when i apply the locomotive i change the scroller to ".main" it is still not working

See the Pen bGQZRMM by Ram-Ji-Rajput-RJ (@Ram-Ji-Rajput-RJ) on CodePen

Link to comment
Share on other sites

Hi @Ram Ji welcome to the forum!

 

Locomotive is a third party library which is not build by GSAP. We like to keep this forum to GSAP related questions. There are lots of previous topics about locomotive scroll and ScrollTrigger on these forums  https://greensock.com/search/?q=locomotive&quick=1&type=forums_topic&nodes=11 if you want to do some research yourself

 

But GSAP has its own smooth scroll library aptly named SmoothScroll, which works out of the box with ScrollTrigger, so this will save you a lot of hassle. You are free to use what ever tool you like of course, but personally I can't help you with Locomotive. 

 

See the Pen xxQBLgq?editors=0010 by mvaneijgen (@mvaneijgen) 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...