Jump to content
Search Community

Alexandr Tyurin

Members
  • Posts

    1
  • Joined

  • Last visited

Alexandr Tyurin's Achievements

  1. Greetings! I have a question about GSAP 3 syntax. Interested in a way to specify the duration. Below are 2 options for specifying the duration of the animation: 1. gsap.to(".rect", 3, {rotate: 90}); 2. gsap.to(".rect", {duration: 3, rotate: 90}); the first variant was in the second version of GSAP, the second variant appeared in the 3rd version. The question is: The first option is more concise and sometimes convenient. But there are fears that the first method is outdated and sooner or later will not work in new versions. Or fears are in vain and both methods will remain in the future? Which way do developers go - leave variability or try to get rid of redundancy?
×
×
  • Create New...