How to make the hover background appear like in the video
thank you so much
7 Replies
Are you referring to how it gets bigger/zooms in?
yes , when i hover it
you should be able to change the background image size by altering it's background-size property on hover:
thank you so much
If I use img tag, is it possible?
yes, you can just use
scale: 200%
or transfom: scale(200%)
( they are essentially the same).
eg:
However, if you want to achieve the same effect as in your video, you will need to wrap the image in a container and give that an overflow: hidden (or clip) as otherwise the image will scale on top of all the surrounding content which may no be what you want.
thank you so much