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/* Point-zoom Container */.point-img-zoom img { transform-origin: 65% 75%; transition: transform 1s, filter .5s ease-out;}/* The Transformation */.point-img-zoom:hover img { transform: scale(5);}