Jump to content
Search Community

Vertical scrolling after Click

szewa21190 test
Moderator Tag

Recommended Posts

Hej!

I am a beginner gsap fan and have a little problem. I have a section that is static by default. After clicking the button the horizontal scroll appears and it works fine. I would like, however, that after clicking there is a shift of 120vw, which will be animated. How to do it?

See the Pen dyYQBbd by owline (@owline) on CodePen

Link to comment
Share on other sites

Hey szewa21190 and welcome to the GreenSock forums.

 

ScrollMagic isn't a GreenSock product and we don't really support it here. In fact, GSAP is making it's own scroll plugin! It's still in its private beta stage but we're hoping to release it in the next couple of weeks.

 

In general, it's easiest to animate the scroll position of a page using GSAP's ScrollToPlugin

 

You're using a really old version of GSAP. We highly recommend upgrading to GSAP 3 which has a smaller file size, a sleeker API, and a bunch of new features.

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