Answers for "how to zoom out an image in css without hover"

CSS
1

zoom image on hover

.zoom:hover {
    transform: scale(1.5); /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
}
Posted by: Guest on August-25-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

Code answers related to "how to zoom out an image in css without hover"

Browse Popular Code Answers by Language