Jump to content
Search Community

Scroll position to move element

Sndn test
Moderator Tag

Recommended Posts

Hello :)

I'm new to animation and GSAP and I tried things for what I'm looking for but nothing seems to work, I dont know if I am missing something or what.

 

I would like to move a circle as an indicator of scrolling through a parent div of 100% height on position fixed. I need to get the position of my scrolling bar in % to position my circle along the div from 0% (top of the page) to 100% (bottom of the page). Any idea if that's possible to do this with GSAP ? 

 

Thank you!

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