Jump to content
GreenSock

savvi

Scroll marker colours - Feature Request

Go to solution Solved by Cassie,

Recommended Posts

Would be great if we could theme scroll markers in some way? Give position left or right side of screen and maybe add a colour option?
 

markers: {visible: true, label: "myTrigger", position: left, colour: red}

 

This way it would be easier to distinguish between multiple scroll triggers.

 

Link to comment
Share on other sites

  • Solution

You can!

 

From the docs.

 

markers Object | Boolean - Adds markers that are helpful during development/troubleshooting. markers: true adds them with the defaults (startColor: "green", endColor: "red", fontSize: "16px", fontWeigth: "normal", indent: 0) but you can customize them by using an object like markers: {startColor: "white", endColor: "white", fontSize: "18px", fontWeight: "bold", indent: 20}.
  • Like 2
Link to comment
Share on other sites

haha brilliant!! I did have a google and it seemed something quite simple to implement so I did wonder!

 

Thank you!

  • Like 1
Link to comment
Share on other sites

Just out of interest (as I'm trying to make the docs better) Did you look in the docs, not find it and then google - or jump straight to google?

Link to comment
Share on other sites

  • 2 weeks later...

Sorry just logged in and saw this reply.. 

I scanned through the docs but missed it then went to google. Now I can see it in the docs clear as day! 

  • Like 1
  • Thanks 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.
×