Jump to content
Search Community

ScrollTrigger Issue

Akash_rathore test
Moderator Tag

Recommended Posts

Hey I tried using scrollTrigger by creating a simple navigation bar and three sections. I added animations to the text and image in the sections. But the issue I am facing here is that when I scroll the page, that text and image scrolls over the navigation bar. Does the scrollTrigger adds z-index to the element on which it is used?

And second issue is that, it adds a horizontal scroll bar in the bottom and it goes away once the animation is over. Why's that happening.

Both the issues can be solved by adding z-index to the navigation and adding overflow: hidden to the section, but these issues shouldn't arise in the first case. Can someone explain why's that happening.

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