I have a table
, the cells of which are filled with pictures. I would like the pictures to grow larger when you hover over them and I would like the cells of the
use CSS transitions.
.zoom {
padding: 50px;
background-color: green;
transition: transform .2s; /* Animation */
width: 200px;
height: 200px;
margin: 0 auto;
}
.zoom:hover {
transform: scale(1.5); /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
}
Hover over the div element.
test text
w3Schools zoom hover