Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style>
- .zoom {
- padding: 50px;
- 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) */
- }
- </style>
- <div class="zoom">
- <div id="img"><img src="https://media.tenor.com/images/eff22afc2220e9df92a7aa2f53948f9f/tenor.gif"></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement