How to create zoom in in CSS

<!--DOCTYPE html--> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> * { box-sizing: border-box; } .image-wrap { width: 200px; height: 200px; position: relative; overflow: hidden; } .image-wrap img { top: -50px; left: -150px; height: 400px; width: 400px; transition: all 500ms ease-in; position: absolute; } .image-wrap img:hover { top: 0; left: 0; height: 200px; width: 200px; } </style> <div class="image-wrap"> <img alt="" src="https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_uDT049b_fHVG3nHYSkzXsLf3RdG-6cjhCHugcFRueOXZenF5XPp-7qQQOaKGY5LGxDZYBK_CXgMBDw2bqoNdQ0v3MAEKS_ICHvl3CgtFBamKw06G1WBKypPS4Ly1HzqAyHkGqASc9IOGT9LNHKDm0yp8kUIwm8l3SGYiiZSgOxcDB_xeuNZWEm=s0-d"> </div> </body> </html>

agyanadda

Author & Editor

Has laoreet percipitur ad. Vide interesset in mei, no his legimus verterem. Et nostrum imperdiet appellantur usu, mnesarchum referrentur id vim.

0 $type={blogger}:

Post a Comment