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.