Jump to content
Search Community

Saqlain

Members
  • Posts

    2
  • Joined

  • Last visited

Saqlain's Achievements

  1. But that's not talking about the scenario I'm in. Should I use a timeOut?
  2. I'm animating a button and want to revert the tween once it is animated, but it does not work for me. The following function triggers on btnRef click in a React component. function animateBtn(event) { const btnTween = gsap.to(btnRef.current, { duration: 0.2, scale: 1.1, yoyo: true, }); btnTween.revert(); }
×
×
  • Create New...