Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Em Karimifar

GSAP on Codepen vs Local

Recommended Posts

Hi ,

I've used gsap on codepen for a while and I just joined the club to do a project for a client. 

I want to install the GSAP plugins locally but it's not working at all. I tried the exact same code on a TweenMax-enabled Codepen and it worked! So I'm quite sure there is something wrong with the way I'm linking my GSAP files. 

 

Here's all my script files right before closing body tag: 

 

<spript src="js/GSAP/TimelineMax.js"> </spript>
        <spript src="js/GSAP/TweenMax.js"> </spript>
        <spript src="js/GSAP/EaselPlugin.js"> </spript>
        <spript src="js/GSAP/DrawSVGPlugin.js"> </spript>
        <spript src="js/GSAP/MorphSVGPlugin.js"> </spript>
        <spript src="js/GSAP/CSSPlugin.js"> </spript>
        <spript src="js/GSAP/EasePack.js"> </spript>
        <spript src="js/GSAP/RoundPropsPlugin.js"> </spript>
        <spript src="js/GSAP/AttrPlugin.js"> </spript>
        <spript src="js/GSAP/DirectionalRotationPlugin.js"> </spript>
        <spript src="js/GSAP/BezierPlugin.js"> </spript>
        <spript src="js/GSAP/jquery.gsap.js"> </spript>
        <spript src="js/GSAP/TimelineLite.js"> </spript>
        <spript src="js/GSAP/TweenLite.js"> </spript>
    

        <script src="https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.5/ScrollMagic.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.5/plugins/debug.addIndicators.js"></script>  
        
        <script src="js/main.js"> </script>
    </body>

 

Thanks,

See the Pen dREbZP by EmAustin (@EmAustin) on CodePen

Link to post
Share on other sites

Hi and welcome to the GreenSock forums and the Club!

 

If the HTML you pasted is the actual code you have some typos.

your <spript> ... </spript> need to be <script> 

 

sometimes it just takes another set of eyes ;)

 

 

 

  • Like 4
Link to post
Share on other sites

also please note that TweenMax.js includes TweenMax and all of these tools:

  • TweenLite
  • TimelineLite
  • TimelineMax
  • CSSPlugin
  • AttrPlugin
  • RoundPropsPlugin
  • DirectionalRotationPlugin
  • BezierPlugin
  • EasePack

 

So you don't need to load any of the above in addition to TweenMax

 

https://greensock.com/tweenmax

  • Like 4
Link to post
Share on other sites
3 hours ago, Carl said:

If the HTML you pasted is the actual code you have some typos.

your <spript> ... </spript> need to be <script> 

 

sometimes it just takes another set of eyes ;)

 

Maybe, when the GSAP phonics engine moves from the rudimentary stage to final implementation, it will catch those typos for us too. :lol: 

 

For anyone not getting the reference:

 

  • Like 4
Link to post
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.

×