DD77

Members
  • Content Count

    127
  • Joined

  • Last visited

Community Reputation

7 Newbie

About DD77

  • Rank
    Advanced Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. DD77

    SVG animation

    @PointC if you could check that would great. https://codepen.io/davide77/pen/WaWaNE?editors=1010
  2. DD77

    SVG animation

    Hi @PointC this is what I achieved with your amazing support! I'm not sure, but if I click twice on the same button, it doesn't restart the animation. I was hopping you could spot the issue! Thanks in advance
  3. DD77

    SVG animation

    Sure! all the best and thank you
  4. DD77

    SVG animation

    DO I need to call the doCoolStuff function again?
  5. DD77

    SVG animation

    I should open again in order to have the animation restart?
  6. DD77

    SVG animation

    it should have a value close right?
  7. DD77

    SVG animation

    var newAnim = new TimelineLite({paused:true});
  8. DD77

    SVG animation

    the if is setting the states if (toggle === "closed") { toggle = "open"; }
  9. DD77

    SVG animation

    I tried something like that, if(toggle = "open") { anim.pause(); }else { anim.play(); }
  10. DD77

    SVG animation

    Something like this perhaps? is not stopping though... function onReverseComplete() { anim.play(!anim.reversed()); }
  11. DD77

    SVG animation

    I’ll give it a go tomorrow first thing! I’m on my mobile now! Thanks for your magnificent help!
  12. DD77

    SVG animation

    I will play a bit more tomorrow. something like this? $(this).click(function(){ anim.play(); })
  13. DD77

    SVG animation

    Something liek that? but now sure where to implement it. onReverseComplete: function () { }
  14. DD77

    SVG animation

    I would say that but I toggle just one! so I'm not sure to reverse the whole animation... function reverseAnim() { anim.reverse(); }
  15. DD77

    SVG animation

    toggle = this.index; ?