Jump to content
Search Community

GSAP on Codepen vs Local

Em Karimifar test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

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 comment
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 comment
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 comment
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.
×
×
  • Create New...