Jump to content
Search Community

Repeating animation Play on Mouse Hover, play to the end no meter mouse is hoverd or not

ttsz test
Moderator Tag

Recommended Posts

helo,

Soryy for my noob question but im trying to solve problem, but my knowlage is... yeah...

i want to make sth like this sh** on video. i was trying to use two images but i need whole animation. I was thinking to use gif, on hover play, but im not able to stop it repeat and i wonder if its a good way.

can anybody help me whit that? 

 

Link to comment
Share on other sites

Based on a cursory search it doesn't look like GSAP has any way of interacting with GIFs in the way you are describing. It's more than likely that this is something you could accomplish with vanilla JavaScript exclusively.

Link to comment
Share on other sites

Perhaps I'm misunderstanding, but are you saying you just want to play a VIDEO on hover and then make sure it finishes playing even if the user hovers over/out/over/out? Wouldn't it be as simple as using some conditional logic in a mouseenter handler to play() the video? Is there something you wanted to use GSAP for in particular? 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...