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_tgS96e_zx9WAUf29ZYYcTwEt-PmyqedGP0gfr-kQqJ_Ap5eAZ7z7SMBKhqWINWZdpJHLyX7qMcoSNi53MNQyEu9Te3v14JUGc_GBw2hrfkIMrW9j_gXNw15FgKuBnp2LKJ3rULTDFCmQV4Py_CIqtJz6425Uz9-ZaINxA43oOevi6x99MCurxn=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