Search
 
SCRIPT & CODE EXAMPLE
 

CSS

zoom background image css

/*
Or this one can be used
*/
.prod_img {
  -webkit-transition: all 2s ease-in-out;
  -moz-transition: all 2s ease-in-out;
  -o-transition: all 2s ease-in-out;
  -ms-transition: all 2s ease-in-out;
  transition: all 2s ease-in-out;
  height: 580px;
  width: 300px;
  position: relative;
}

.prod_img:before {
  content: ' ';
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background-image: url(http://images.all-free-download.com/images/graphicthumb/beautiful_landscape_picture_02_hd_pictures_166284.jpg);
  background-size: cover;
  background-position: center center;
  "

}

.protransparentbg {
  position: absolute;
  left: 20px;
  background: rgba(51, 51, 51, .8);
}

.prod_img:hover:before {
  webkit-transform: scale(1.04);
  -moz-transform: scale(1.04);
  -o-transform: scale(1.04);
  -ms-transform: scale(1.04);
  transform: scale(1.04);
  -webkit-transition: all 2s ease-in-out;
  -moz-transition: all 2s ease-in-out;
  -o-transition: all 2s ease-in-out;
  -ms-transition: all 2s ease-in-out;
  transition: all 2s ease-in-out;
}
Comment

PREVIOUS NEXT
Code Example
Css :: css round image without stretching 
Css :: elementor ccs code for gradient 
Css :: what is the best way to center a div 
Css :: gradient btn 
Css :: how to make bold text css 
Css :: css transition on click 
Css :: spinner in html css react 
Css :: text background image css 
Css :: crop image in div 
Css :: backdrop filter css 
Css :: neomorphic box 
Css :: use flex in container with multiple components 
Css :: cs cirlce 
Css :: CSS line-height values 
Css :: make footer stick to bottom without overlap over other elements 
Css :: linear gradient in css 
Css :: execution timeout expired the timeout 
Css :: zoom in to picture on html css 
Css :: css text background 
Css :: calculator 
Css :: css set styles for input text 
Css :: css wrap text 
Css :: change hover color link in wordpress 
Css :: css offset border 
Css :: divider with text css 
Css :: change option tag css 
Css :: css make background image repeat vertically 
Css :: disable on print margin html 
Css :: wp query not in category 
Css :: filter css 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =