Jump to content
Search Community

Markers are breaking the UI

Vivek Dahiya

Recommended Posts

Posted

Here when I set Markers to "true" in order to see the markers, then the UI of the whole page breaks and there is no error in console.

See the Pen JoXqJMo by Vivek-Dahiya (@Vivek-Dahiya) on CodePen.

Posted

Yeah, that's because you've got this [highly unconventional] CSS: 

div {
    width: 100%;
    height: 100vh;
    background-color: #131212;
}

Which is forcing ALL <div> elements to fill the screen, including the markers! 

 

I'd recommend fixing your CSS but you could also just add this kind of thing: 

.gsap-marker-scroller-start, .gsap-marker-scroller-end, .gsap-marker-start, .gsap-marker-end {
    width: auto;
    height: auto;
    background-color: transparent;
}

See the Pen ZYWNrKJ by GreenSock (@GreenSock) on CodePen.

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...