J
J
Jedi2018-02-19 20:43:15
css
Jedi, 2018-02-19 20:43:15

How to add buttons to an image?

I want buttons to appear when hovering over the image.
5a8b0b54e9b1c130708328.png
But most of all I liked how it is implemented on vimeo
5a8b0bd0b9ae6698570688.png
:hover
5a8b0bdedb7ca969794880.png
I'm not very strong in CSS, please give advice, links on how to implement this.
I kind of know it's about layers, but I don't know how to use them correctly.
Here is mine on what I want to do it https://jsfiddle.net/PHPJedi/qnka2sko/3/
I want the wild button to be like on YouTube, on the side.
And it would be great if they showed how to implement the same as on Vimeo.
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2018-02-19
@PHPjedi

Add an image to the block, throw buttons with into the block div button {display: none;}when the parent catches hover div:hover button {display: block;}. Use absolute positioning for buttons. For the parent block, explicitly specifyposition:relative;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question