Skip to content

jQuery plugin breaks ScrollMagic 2.0.0 #268

@PieterGoossens

Description

@PieterGoossens

Hi,

including the 'jquery.ScrollMagic.js' plugin seems to break ScrollMagic 2.0.0. For example, I've use the following HTML markup:

<html>
   <head>
       <script src="http://code.jquery.com/jquery-1.11.2.js"></script>
       <script src="https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.0/ScrollMagic.js"></script>
       <script src="https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.0/plugins/jquery.ScrollMagic.js"></script>
   </head>
    <body>
        ...
    </body>
</html>

Typing in ScrollMagic.version in Chrome's console yields the following error:

Uncaught ReferenceError: ScrollMagic is not defined

As soon as I remove the jquery.ScrollMagic.js line from the head of the document, typing in ScrollMagic.version correctly returns 2.0.0 as the version. I've also tried the latest 2.x version of jQuery, but the problem persists.

Is this a bug/issue with ScrollMagic/it's jQuery plugin or a PEBCAK?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions