Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question