Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
celli

GSAP 3 Error when using Scroll Magic

Recommended Posts

Hi,

 

I seem to be getting an error in the console (pasted below)

Invalid property onOverwrite set to undefined Missing plugin? gsap.registerPlugin()

 

This happens when my scrollMagic trigger is activated.

If you scroll up on the codePen with the console open, you can see it.

 

I removed all of the properties one-by-one, but I still seem to get the error, although it still executes the code. Does anyone know whats wrong with my code or the reason why ?

 

See the Pen gObxdgd by celli (@celli) on CodePen

Share this post


Link to post
Share on other sites

Hey celli,

 

This is an issue with ScrollMagic, not GSAP. A PR has been made but no official release for it yet: https://github.com/janpaepke/ScrollMagic/pull/920

 

ScrollMagic is not well maintained, we don't recommend using it. You could simply detect the scroll position and fire an animation (without ScrollMagic) in your demo. Or use the Intersection Observer API. 

  • Like 2

Share this post


Link to post
Share on other sites

ahh, got it. Okay, thank you!

Share this post


Link to post
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.

×