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

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 :: 3d trapezoid 
Css :: bootsrap view only landscape 
Css :: how to draw hex colun in html css 
Css :: html prevent interaction 
Css :: fixing the side by side movement of website when using boostrao 
Css :: ipad css media query 
Css :: how to add blurr and grain in css 
Css :: alinhar componentes css 
Css :: Add the animation stylesheet to the <head element of your webpage 
Css :: what is integrity cdn 
Css :: advance logic in css 
Css :: multi-styles 
Css :: create an outline of a square css 
Css :: Any gallery-related CSS should have additional selectors added to target images in the following structure in both the editor and front end 
Css :: linear gradient 
Css :: css "fontweight" "font-weight" "fontWeight" 
Css :: html click through image 
Css :: Do not use empty rulesetscss(emptyRules) 
Typescript :: how to update typescript 
Typescript :: ts get year from date 
Typescript :: react children 
Typescript :: conditional style angular 
Typescript :: custom fonts css 
Typescript :: convert object object to array typescript 
Typescript :: python requests header allow redirect false 
Typescript :: how to check if something exists roblox 
Typescript :: typescript get the mime type from base64 string 
Typescript :: Nmap to find open ports kali linux 
Typescript :: adonis validator exists 
Typescript :: typescript get keys from enum 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =