How TO - Zoom on Hover
Learn how to zoom/scale an element on hover with CSS.
Zoom on Hover
Hover over the green box:
How To Zoom on Hover
transition: transform .2s; /* Animation */
margin: 0 auto;
transform: scale(1.5); /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
Tip: Go to our CSS Transform Tutorial to learn more about how to scale elements.