Answers for "zoom image on click css"

CSS
8

zoom image css

/*Zoom on hover*/

<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)*/
}
</style>

<div class="zoom"></div>

/*credits: w3schools.com */
Posted by: Guest on April-16-2020
0

how to use image zoom effect in css

.parent:hover .child,
.parent:focus .child {
  transform: scale(1.2);
}
Posted by: Guest on February-26-2021
0

how to use image zoom effect in css

.child::before {
  content: "";
  display: none;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(52, 73, 94, 0.75);
}

.parent:hover .child:before,
.parent:focus .child:before {
  display: block;
}
Posted by: Guest on February-26-2021
0

zoom image on click css

kjhdfjk
Posted by: Guest on March-24-2021

Browse Popular Code Answers by Language