Search
 
SCRIPT & CODE EXAMPLE
 

CSS

how to use image zoom effect in css

.parent:hover .child,
.parent:focus .child {
  transform: scale(1.2);
}
Comment

auto zoom image css

/*HTML*/
<img src="https://c1.staticflickr.com/1/628/22240194016_50afaeb84d_k.jpg" class="full zoom" alt="" />

/*CSS*/
body *,
html * {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

body {
  overflow: hidden;
}

.full {
  position: absolute;
  width: 100%;
  height: auto;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  display: block;
}

.zoom {
  animation: scale 40s linear infinite;
}
  
@keyframes scale {
  50% {
    -webkit-transform:scale(1.2);
    -moz-transform:scale(1.2);
    -ms-transform:scale(1.2);
    -o-transform:scale(1.2);
    transform:scale(1.2);
  }
}
Comment

zoom in to picture on html css

/* Point-zoom Container */.point-img-zoom img {  transform-origin: 65% 75%;  transition: transform 1s, filter .5s ease-out;}/* The Transformation */.point-img-zoom:hover img {  transform: scale(5);}
Comment

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;
}
Comment

PREVIOUS NEXT
Code Example
Css :: float: down css 
Css :: border radius color html 
Css :: css radial gradients 
Css :: how to set unclickable checkbox using css 
Css :: working with tailwind css on your react build 
Css :: after certain width how make ontent center and add margin auto both side 
Css :: deploy truffle project on testnet 
Css :: mitmf install 
Css :: bootstrap text truncate after 3 lines 
Css :: border radius css 
Css :: make background overlay css 
Css :: border css 
Css :: JavaScript find common characters between the strings 
Css :: css clearfix for floats with display table and clear both 
Css :: absolute positioning css 
Css :: button active css 
Css :: card tailwind css 
Css :: css make border rotate around element 
Css :: tel css 
Css :: css ovel 
Css :: css a tag id selector scrolls too far 
Css :: selectors in css 
Css :: css icon 
Css :: css backface-visibility 
Css :: touch-action in css 
Css :: google font smooth 
Css :: hide scrollbar 
Css :: modern css reset 
Css :: what is padding in css 
Css :: input disabled css 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =