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 :: icon circle css 
Css :: color tr first row css 
Css :: select first 5 child css 
Css :: flex items not taking full width 
Css :: difference between html and css 
Css :: css after on hover 
Css :: image overlay css 
Css :: change parent div css on over of child 
Css :: onclick css animation 
Css :: animated progress bar css 
Css :: Responsive Web Design - Videos 
Css :: CSS Reference element height 
Css :: java to python 
Css :: tailwindcss cdn v3 
Css :: aspect ratio css media query 
Css :: position absolute and relative css 
Css :: css transitions 
Css :: box css example 
Css :: textarea { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; width: 100%; } 
Css :: select2 make previously selected options non deletable 
Css :: operador css contain attr 
Css :: css video background filter darken 
Css :: how to allign li in row 
Css :: css hide select label 
Css :: how to add google fonts to css in react 
Css :: scale to smaller of vh and vw 
Css :: var in css 
Css :: how to apply hover through inline css 
Css :: modern css reset 
Css :: logic in css 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =