Answers for "how to zoom out of an image in css"

CSS
0

how to use image zoom effect in css

.parent {
  width: 400px; 
  height: 300px;
}

.child {
  width: 100%;
  height: 100%;
  background-color: black; /* fallback color */
  background-image: url("images/city.jpg");
  background-position: center;
  background-size: cover;
}
Posted by: Guest on February-26-2021

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

Browse Popular Code Answers by Language