Skip to content

Using ScrollMagic as an AMD module or shim #160

@gabriel-amram

Description

@gabriel-amram

Hello,
Is there a way to use the ScrollMagic plugin as an AMD module?
I see it defines two variables in the window level :
window.ScrollScene = ScrollScene;
window.ScrollMagic = ScrollMagic;

but using it with requirejs requires these to be defined otherwise.

Using requirejs shim syntax doesn't work because ScrollMagic exports 2 variables as far as I know. Is there a way to use ScrollMagic as an AMD module?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions