javascript - Getting started with GSAP -
i'm trying first tween gsap, , nothing's happening, when i've tried use example code.
i have php file following code:
<head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <style> #green { width: 100px; height: 100px; background-color: #0d9c02; } </style> </head> <body> <div id="green"></div> <script type="text/javascript" src="js/greensock/plugins/cssplugin.min.js"></script> <script type="text/javascript" src="js/greensock/tweenlite.min.js"></script> <script> $(document).ready(function(){ var logo = document.getelementbyid("green"); tweenlite.to(logo, 1, {left:"600px"}); }); </script> </body>
all though static green square. must missing fundamental - what?? thanks.
simple solution: needed position: relative;
in css work.
Comments
Post a Comment