Jump to content

Search In
  • More options...
Find results that contain...
Find results in...
Arifin N

Requirejs Animation GSAP

Recommended Posts

Hello, how to config magicscroll with tweenmax with requirejs?

I work with Magento 2, which is Magento 2 using requirejs. 

I've tried my code in local, it worked. But in magento with requirejs always fail with error in console.


Local (see attachment)


On magento 2 my requirejs config like this:

var config = {
    paths: {
        'scrollmagic': 'scrollmagic/ScrollMagic.min',
        'bootstrapjs': 'bootstrap/js/bootstrap.min',
        'tweenmax' : 'scrollmagic/plugins/TweenMax.min',
        'timelinemax' : 'scrollmagic/plugins/TimelineMax.min',
        'animationgsap' : 'scrollmagic/plugins/animation.gsap.min',
        'tweenlite' : 'scrollmagic/plugins/TweenLite.min'
    shim: {
        'scrollmagic': {
            'deps': ['jquery']
        'bootstrapjs' : {
            'deps' : ['jquery']
        'tweenmax': {
            'exports': 'tweenmax'

On page in magento 2 i load like this:

], function($,ScrollMagic){


After that on my console always appear error like this: (see attachment).


Is there something wrong with my code? Please help. Thank You.

Screen Shot 2019-10-18 at 07.49.05.png

Screen Shot 2019-10-18 at 07.45.10.png

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.