Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
oh , I would like to see the code (
well, in general, the text through translateX / Y ()
Wrap the image and text in a div. On hover on this div, change the styles of the picture and text.
For example, this way
To display text, you can make another substrate and apply a background to it. There are many options here.
In your implementation, the hover works because you track it from the picture. As soon as the text covers the image, the hover event leaves it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question