W
W
WebforSelf2021-05-16 03:27:20
css
WebforSelf, 2021-05-16 03:27:20

How to mask video html?

There is a block with a background in the form of a video.


How to put a mask on it to make it

look like this
60a066b7640b2349090283.png
. With the image it’s clear, we insert it through svg, but with the video it’s not entirely clear how to implement it.
The idea is that the background is white, there will be content around, and the ball is a mask through which it shows a piece of video that lies under the layer.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
RAX7, 2021-05-16
@WebforSelf

A
Aetae, 2021-05-16
@Aetae

Similarly, through css, you can impose a svg mask on anything.
But in a specific case - when you need a circle - it's better to just put the video in a container with border-radius: 50%and - the processor will suffer less.) overflow: hidden

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question