Share Posted September 1, 2015 Hi all, Can anyone please tell me what is wrong with my var syntax? Thanks... See the Pen qOBpNr by Juc1 (@Juc1) on CodePen Link to comment Share on other sites More sharing options...
Share Posted September 1, 2015 Hi all, Can anyone please tell me what is wrong with my var syntax? Thanks... Nothing is wrong, but you have to include jquery as a library in your code pen.. Click on Settings , then Javascript, second tab i think, then you click on quick add drop down and select Jquery, then your bouncy animation will work... hope this helps @alwayz 3 Link to comment Share on other sites More sharing options...
Author Share Posted September 1, 2015 Nothing is wrong, but you have to include jquery as a library in your code pen.. Click on Settings , then Javascript, second tab i think, then you click on quick add drop down and select Jquery, then your bouncy animation will work... hope this helps @alwayz @alwayz ok it works now, thanks! Can I add jquery by default so I don't have to keep adding it for each new pen? - I can't see where to do that in the codepen settings. Link to comment Share on other sites More sharing options...
Share Posted September 1, 2015 alwayzambitious is absolutely right. Because you're using jQuery syntax ... you need jQuery. If your project is not using jQuery, you can simply use GSAP's selector See the Pen LpYeKm by sgorneau (@sgorneau) on CodePen 2 Link to comment Share on other sites More sharing options...
Share Posted September 1, 2015 Regarding CodePen, one option is to just create a basic pen like our starter pen: http://codepen.io/GreenSock/pen/hbCir with all the libraries you need and fork it every time you want to start a new one. FYI if you have a feature request for CodePen, drop CodePen support an email. I have found that they are extremely responsive. I think having a custom "template" pen that is used every time you create a new pen is a solid idea. Link to comment Share on other sites More sharing options...
Author Share Posted September 1, 2015 @ Shaun ok thanks. @ Carl ok thanks I will send an email... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now