D
D
Danya Wyse2020-01-09 22:43:11
css
Danya Wyse, 2020-01-09 22:43:11

A frame with an overlay of a picture and a button on top of the video?

I don’t know how to make such a frame, help :c
It needs to be full screen
5e17823b8b493702392101.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anatoly Kulikov, 2020-01-09
@Wyse

The video tag has a special poster attribute - there you can specify a link to the desired image.
The button can be positioned and placed using a pseudo-element.
Also, if the option with a poster is not suitable, you can do it with a picture.
Or this option: we make a parent element, it has two children. In the first (it will be in the background), we place the video. In the second (it will be in the foreground) we place a picture (it can be used as a background), and in the same element we insert another one that will contain the Play button. Center it with flexbox.

A
Anton Usachov, 2020-01-10
@rockfeeler

Something like this is possible:

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question