Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

atif123's avatar

How to make image zoom when mouse is placed over like this website

I want to make image zoom when mouse is placed over it like this https://null-byte.wonderhowto.com/

jquery

0 likes
3 replies
Tray2's avatar

You can do that with plain CSS

 <style>
.zoom {
  padding: 50px;
  background-color: green;
  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> 
2 likes
atif123's avatar

i know from css but i want to do with jquery plugin

Please or to participate in this conversation.