Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uncaught ReferenceError: TweenLite is not defined

/justincavery/pen/mPJadb - it is link on codepan

When I copy code from codepan and run it. I have got error: "Uncaught ReferenceError: TweenLite is not defined".

Image is drawing once, but no animation...only if I press "F5". Help me)

like image 857
Юра Белозерцев Avatar asked Apr 14 '16 10:04

Юра Белозерцев


1 Answers

Go to Settings->Javascript->Add External JavaScript and see what is there. Codepen has the dependency included, and you didnt include it in your own code.

<script src="http://cdnjs.cloudflare.com/ajax/libs/gsap/1.18.0/TweenMax.min.js"></script>

Include this to your file.

like image 167
IdeaMan Avatar answered Oct 27 '22 06:10

IdeaMan