Jump to content
Search Community

DrawSVG + ScrollTrigger pin path to middle of page

eo33 test
Moderator Tag

Recommended Posts

That is why it's always smart to turn on the `markers: true` then you can see what is happing and when.

 

You can also change `end: "bottom bottom",` too `end: "bottom center",` and it will stay even more centered, but you then will need to add some spacing to the bottom of the page otherwise the end trigger will never reach its destination. 

 

https://codesandbox.io/s/damp-violet-orj6u7?file=/src/App.js:458-479

  • Like 4
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...