Jump to content


  • Posts

  • Joined

  • Last visited

Posts posted by Darkin

  1. 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?

    //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
  2. 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.


    See the Pen XJJXpg?editors=110 by anon (@anon) on CodePen