1/*Zoom on hover*/
2
3<style>
4.zoom {
5 padding: 50px;
6 background-color: green;
7 transition: transform .2s; /* Animation */
8 width: 200px;
9 height: 200px;
10 margin: 0 auto;
11}
12
13.zoom:hover {
14 transform: scale(1.5); /* (150% zoom)*/
15}
16</style>
17
18<div class="zoom"></div>
19
20/*credits: w3schools.com */
1<style>
2.zoom {
3 padding: 50px;
4 background-color: green;
5 transition: transform .2s; /* Animation */
6 width: 200px;
7 height: 200px;
8 margin: 0 auto;
9}
10
11.zoom:hover {
12 transform: scale(1.5); /* (150% zoom)*/
13}
14</style>
15
16<div class="zoom"></div>