How to create: Zoom on hover
- Previous Page Format Numbers
- Next Page Flip Box
Learn how to zoom elements on hover using CSS.
Zoom on hover
Please hover the mouse over the green box:
How to zoom on hover
<style> .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 zoomed too much, it will exceed the viewport range) */ } </style> <div class="zoom"></div>
Related Pages
Tutorial:CSS Transformation
- Previous Page Format Numbers
- Next Page Flip Box