Search
 
SCRIPT & CODE EXAMPLE
 

CSS

equivalent zoom css

-moz-transform: scale(0.5);
-webkit-transform: scale(0.5);
-o-transform: scale(0.5);
-ms-transform: scale(0.5);
transform: scale(0.5);
Comment

zoom animations in css

.zoom-in-out-box {
  margin: 24px;
  width: 50px;
  height: 50px;
  border:1px solid green;
  background: #f50057;
  animation: zoom-in-zoom-out 1s ease infinite;
}

@keyframes zoom-in-zoom-out {
  0% {
    transform: scale(1, 1);
  }
  50% {
    transform: scale(1.5, 1.5);
  }
  100% {
    transform: scale(1, 1);
  }
}
Comment

zoom level in css

.zoom {
  zoom: 150%;
}
Comment

how to use image zoom effect in css

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

animate zoom in and zoom out in css

<div class="cardcontainer">
  <img class="galleryImg" src="https://www.google.com/logos/doodles/2014/2014-winter-olympics-5710368030588928-hp.jpg">
</div>

@keyframes zoominoutsinglefeatured {
    0% {
        transform: scale(1,1);
    }
    50% {
        transform: scale(1.2,1.2);
    }
    100% {
        transform: scale(1,1);
    }
}

.cardcontainer img {
    animation: zoominoutsinglefeatured 1s infinite ;
}
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

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 :: remove border svg 
Css :: css selector all class prefix 
Css :: hard blink 
Css :: set svg background color css 
Css :: css blur gradient 
Css :: css grid repeat 
Css :: fill and no repeat background image css 
Css :: reset list html css 
Css :: react html height 100% 
Css :: how to disable margin collapsing 
Css :: background repeat 
Css :: disable right click with css 
Css :: how to set a div size to full screen 
Css :: css margin left 
Css :: close icon css 
Css :: css hide text 
Css :: css window height 
Css :: how to create space inbetween text css 
Css :: center wrapped flex children 
Css :: css mobile height 100vh 
Css :: center an image 
Css :: CSS box-shadow border shadow 
Css :: jquery hide scrollbar but allow scrolling 
Css :: how to underline text in css 
Css :: make text bold without font-weight 
Css :: media screen smartphone 
Css :: css background image cut off 
Css :: flask sqlalchemy array column 
Css :: tailwindcss table 
Css :: animation shorthand css 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =