Jump to content
Search Community

I'm confused about markers

HeroMeiKong test
Moderator Tag

Recommended Posts

Hi @HeroMeiKong,

I'm pretty sure this is due to your div {} styling. When you add markers, a <div> is appended to the page to hold them, so these markers are inheriting the div styling from your stylesheet, thus affecting your layout/page. It's best to add a utility class and avoid generic element styling like this.

Also, adding a minimal example, or at least indenting your code, would be very helpful in trying to debug/understand what's happening.

  • Like 6
Link to comment
Share on other sites

14 hours ago, elegantseagulls said:

Hi @HeroMeiKong,

 

You need to turn your pinSpacing to true. ScrollTrigger is creates a Fixed position element on your #root div, and the way you have your HTML and CSS setup, this isn't allowing the page to scroll, the pinSpacing option should fix this.

It works, thank you so much.

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