Jump to content
GreenSock

davidkizler

GSAP and Scrolling

Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Does GSAP have built in scroll functionality to trigger animations or do I need to use another library such as ScrollMagic or Skrollr?

Link to comment
Share on other sites

Hello davidkizler,

 

ScrollMagic does use GSAP for its scrolling and animating.

 

You could try to use the GSAP ScrollToPlugin for animating scrolling.

 

Here is a link to the ScrollToPlugin Docs: http://greensock.com/docs/#/HTML5/Plugins/ScrollToPlugin/

 

Also here is a simple example of using the ScrollToPlugin.

 

See the Pen AsLfc by jonathan (@jonathan) on CodePen

 

Happy Tweening!

 

:)

  • Like 1
Link to comment
Share on other sites

Yes you will need to either use another library like ScrollMagic (or create your own) if you would like GSAP tweens to be triggered at specific scroll positions. This isn't a built-in feature of GSAP.

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