ttsz Posted June 22, 2022 Share Posted June 22, 2022 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? 1.mp4 Link to comment Share on other sites More sharing options...
SteveS Posted June 22, 2022 Share Posted June 22, 2022 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 More sharing options...
GreenSock Posted June 22, 2022 Share Posted June 22, 2022 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 More sharing options...
ttsz Posted June 23, 2022 Author Share Posted June 23, 2022 to be honest im just looking for solutions, and didnt think about video and logic conditions. thank you very much. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now