Answer the question
In order to leave comments, you need to log in
How to embed a video with transparency (webm with alpha channel) on a website?
Hello.
Tell me how you can insert a video with transparency (webm with alpha channel) on the site.
Now it only turns out that there is no transparency, the black background is only shown
Answer the question
In order to leave comments, you need to log in
Through the video tag, as usual. Everything works fine for me, maybe your video file does not contain an alpha channel?
use VP9 codecs for Chrome and HEVC for Apple/Safari:
<video width="600" height="100%" autoplay loop muted playsinline>
<source src="movie-hevc.mov" type='video/mp4; codecs="hvc1"'>
<source src="movie-webm.webm" type="video/webm">
</video>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question