Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js #8

Open
Mainbird opened this issue Jan 6, 2020 · 2 comments

Comments

@Mainbird
Copy link

Mainbird commented Jan 6, 2020

Hi, I am using gsap 2.1.3, scrollmagic 2.0.7 and your plugin: scrollmagic-plugin-gsap 1.0.4, but I still get the following error:

(ScrollMagic.Scene) -> ERROR calling setTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js

if I take a look at the browser dev tools console. My example file looks like this:

import * as ScrollMagic from 'scrollmagic';
import {TweenMax, TimelineMax} from 'gsap';
import {ScrollMagicPluginGsap} from 'scrollmagic-plugin-gsap';

export default () => {
    const d = document;
    ScrollMagicPluginGsap(ScrollMagic, TweenMax, TimelineMax);

    d.addEventListener('DOMContentLoaded', () => {
        // ...
    });
};

Should I import the plugin animation.gsap from scrollmagic, too or did I miss something?

@Pashkella
Copy link

Pashkella commented May 21, 2020

Use import ScrollMagic from "scrollmagic";

@audetcameron
Copy link

can confirm changing import * as ScrollMagic from 'scrollmagic'; to import ScrollMagic from "scrollmagic"; did the trick for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants