DDROTT
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by DDROTT
-
-
I need to play HTML5 video in one of the timeline tasks. Something like this:
<video class="video"> <source src="video.mp4" type="video/mp4"> </video>
tl1.to('.video', 1, { opacity: 1, ease: Power4.easeIn}) // fade in video .to('.video', 0, { play video }) // than play video .to('.video', 1, { opacity: 0, ease: Power4.easeOut}) // wait for video to finish, than fade-out
Is it possible?
- 1
How to start function after .to(); has finished?
in GSAP
Posted
Thank You Carl!
Do you maybe know why I have a problem with running this playVideo function twice at the same time?
I have two videos during the timeline, and when first should start - both are starting.
playVideo() function looks like this:
and the timeline looks like this:
and this is the basic html5 video markup:
and I'm getting this in the console: