M
M
mr jeery2017-12-17 20:37:22
css
mr jeery, 2017-12-17 20:37:22

How to animate text in an image?

Created an image grid with flex https://codepen.io/Jeerjmin/pen/QayLqZ
And I want text to appear on hover:
like here jsfiddle.net/8h177njo/.
or here https://webdesigncup.net/demowp/luminis/portfolio-...
But here they use background to fill the block, which is not convenient. maybe I will add photos 1920x1080, but I don’t want to crop it manually.
The difficulty is that I do not understand how to set the position so that the text is always in the center of the photo?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
prodavec macdonalds, 2017-12-17
@jeerjmin

https://codepen.io/prodavecmacdonalds/pen/GyoKYQ?e...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question