DEV Community

Discussion on: Video Animation Using HTML & GSAP

Collapse
 
frontycore profile image
Ondřej Šeliga

Very cool animation, thanks for sharing. I love how performant GSAP is!
One little thing: 3rd argument of timeline.from() method is position, which could only be Number or String according this docs:
greensock.com/docs/v3/GSAP/Timelin.... Shouldn't you use .fromTo() method instead?

Collapse
 
nikhil27b profile image
Nikhil Bobade

Yes we can use fromTo is way better then only from