Skip to content

jamiemaison/imageZoom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

imageZoom

A simple zoom image on hover using only HTML & CSS.

Demo

Usage

HTML

Place the following into your .html file:

<div class="imgZoom">
    <img src="img/placeholder.jpg">
</div>

CSS

Finally, place the following into your .css file:

.imgZoom{
  display: inline-block;
  overflow: hidden;
  padding: 0;
}
.imgZoom img {
  -webkit-transition: all .4s ease;
  -moz-transition: all .4s ease;
  -ms-transition: all .4s ease;
  -o-transition: all .4s ease;
  transition: all .4s ease;
  vertical-align: middle;
}

.imgZoom img:hover {
  -webkit-transform:scale(1.5);
  -moz-transform:scale(1.5);
  -ms-transform:scale(1.5);
  -o-transform:scale(1.5);
  transform:scale(1.5);
}

About

A simple zoom image on hover using only HTML & CSS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published