DEV Community

Cover image for Video Animation Using HTML & GSAP
Nikhil Bobade
Nikhil Bobade

Posted on

Video Animation Using HTML & GSAP

Hello Guys,

Today I Created an Video Animation using HTML CSS & GSAP Animation. In this post I use simple video and GSAP for increase video width on scroll and some other code to show title and subtitle. I hope you like this also comments about your thoughts. also For more content follow me on Instagram @developer_nikhil27.

Thank you 🙂!

Top comments (4)

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

Collapse
 
bcowley1220 profile image
Brendan Cowley

Wow this is cool, thank you for sharing. My wife can always tell and I stumble upon I call Dev article because apparently I have a consistent reaction: "WOAH! No sh!t? That's cool!"

Collapse
 
nikhil27b profile image
Nikhil Bobade

Thank you keep supporting