Search
 
SCRIPT & CODE EXAMPLE
 

CSS

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

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 :: background image path 
Css :: last child after css 
Css :: center things with css 
Css :: css percentrage minus px 
Css :: tailwind center absolute 
Css :: scss extend 
Css :: css contour 
Css :: css opacity 
Css :: ios safe area 
Css :: sticky footer not working bootstrap 
Css :: select third element of an id css 
Css :: different measurements in css 
Css :: add notification in css 
Css :: CSS technique for a horizontal line with icons in the middle 
Css :: make form scrollable 
Css :: scss how to use a variable in entire angular project 
Css :: checkbox change background color bootstrap 
Css :: change font size in textarea html 
Css :: bootstrap modal overflow 
Css :: background blur css 
Css :: text-transform 
Css :: add profile picture to a form in html and css 
Css :: CSS Text Shadow Effect( cool) 
Css :: tailblocks 
Css :: text background color css 
Css :: hide in css 
Css :: grid-column css 
Css :: how to ignore an element from the flexbox container 
Css :: fixed position css 
Css :: flexbox space between 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =