Jump to content
Search Community

GSAP 3 Error when using Scroll Magic

celli test
Moderator Tag

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

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