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 :: array_splice method 
Css :: what is integrity cdn 
Css :: background image with styled components 
Css :: How to disable phone number linking in Mobile Safari 
Css :: after 50% not center 
Css :: hover to slightly up div 
Css :: css make all tags a specific font 
Css :: how can i make a menu bar appear by clicking an icon? in css? 
Css :: what is a trailling widget in flutter 
Css :: color: inherit; 
Css :: linear gradient 
Css :: margin 0 auto in tailwind 
Css :: fixed with 
Css :: how to style a particular image in css 
Css :: Sidebar-Content layout 
Typescript :: angular devkit build angular error 
Typescript :: because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. 
Typescript :: typescript check if string is number 
Typescript :: yarn typescript 
Typescript :: typescript submit event 
Typescript :: angular get url param 
Typescript :: android studio how to draw a line 
Typescript :: python multiply digits of a number 
Typescript :: lofi hip hop beats to study to 
Typescript :: No safe area insets value available. Make sure you are rendering `<SafeAreaProvider` at the top of your app. 
Typescript :: Nmap to find open ports kali linux 
Typescript :: how to print list as matrix in python without brackets 
Typescript :: roblox finding points around a circle using radius, center, and angle 
Typescript :: jquery selector id that starts with 
Typescript :: how to clear all products woocommerce keep category 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =