Here is the image block hover effect example:
Would someone please direct me in the right direction? What is the CSS?
I'd like to replicate this hover effect on my image blocks.
Thank you for your help,
Mike
When the image gets hovered, you can scale it using transform
property and add border
to it. Below is a sample css code, replace it with your class name
.myimg {
transition: all .4s ease-in;
}
.myimg:hover {
transform: scale(1.1);
border: 5x solid green;
box-shadow: 2px 2px 10px #333;
}
<img src="https://www.dike.lib.ia.us/images/sample-1.jpg" class="myimg"/>
You can play with
box-shadow
s a bit, too, to create a better illusion of depth as the card is hovered or focused. Other details:Flexbox
wrapper around cardstransform
/scale
SVG
transition
onfill
propertyjsFiddle