Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by Darkin

  1. Thanks for your help Carl, It works perfectly! you'r the BEST!
  2. Hello guys, I'm new here, and i'm trying to make this SVG rotate forever, but it just won't work, i've tried making the time -1 and it still wont work. any suggestions? Thanks. <script> //we'll use a window.onload for simplicity, but typically it is best to use either jQuery's $(document).ready() or $(window).load() or cross-browser event listeners so that you're not limited to one. window.onload = function(){ var logo = document.getElementById("logo"); var tween =TweenLite.to(logo, 5, {rotation:360, transformOrigin:"50% 50%"}); //keywords tween.restart(); } </script>
  3. Hey guys i'm new to GSAP, so pardon the "DUH" noob question. I'm trying to rotate an object by pressing a button. so far i have the object to rotate on LOAD but when i press the button- nothing happens. I can MOVE the object if I want on button press but i can't figure out why the object will not rotate on button press. I have a link to code pen. I am also new to code pen, so apologies in advance if some thing is missing. I posted it to the best of my ability. Thanks guys. http://codepen.io/anon/pen/XJJXpg?editors=110