hover

Image Hover Effect only CSS Style | Better Image Hover Effect

Spread the love

Today we Learn a Total of 15 Images Hover Effect only using CSS. lets start with Live Demo.

no effect

Only Image add

no effect
 <!DOCTYPE html>
  <html>
<head>
  <title>no effect</title>
</head>
<style>figure {
	width: 300px;
	height: 200px;
	margin: 0;
	padding: 0;
	background: #fff;
	overflow: hidden;
}
</style>
  <body>
<div class="">
  <div>
    <figure><img src="https://i.ibb.co/X3qC3fG/03.jpg" /></figure>
  </div>
</div>
  </body>
  </html>

1.Zoom In #1

Add zoom-in Hover animation to the Image.

Zoom In
<!DOCTYPE html>
  <html>
<head>
  <title>Zoom In</title>
</head>
<style>figure {
	width: 300px;
	height: 200px;
	margin: 0;
	padding: 0;
	background: #fff;
	overflow: hidden;
}
/* Zoom In #1 */
.hover01 figure img {
	-webkit-transform: scale(1);
	transform: scale(1);
	-webkit-transition: .3s ease-in-out;
	transition: .3s ease-in-out;
}
.hover01 figure:hover img {
	-webkit-transform: scale(1.3);
	transform: scale(1.3);
}

</style>
  <body>
<div class="hover01">
  <div>
    <figure><img src="https://i.ibb.co/X3qC3fG/03.jpg" /></figure>
  </div>
</div>
  </body>
  </html>

2.Zoom In #2

Add zoom-in Hover animation to the Image

Zoom In
<!DOCTYPE html>
  <html>
<head>
  <title>Zoom In</title>
</head>
<style>
figure {
	width: 300px;
	height: 200px;
	margin: 0;
	padding: 0;
	background: #fff;
	overflow: hidden;
}

/* Zoom In #2 */
.hover02 figure img {
	width: 300px;
	height: auto;
	-webkit-transition: .3s ease-in-out;
	transition: .3s ease-in-out;
}
.hover02 figure:hover img {
	width: 350px;
}


</style>
  <body>
<div class="hover02 ">
  <div>
    <figure><img src="https://i.ibb.co/MpspPKq/03.jpg" /></figure>
  </div>
</div>
  </body>
  </html>

3.Zoom Out #1

Add zoom-out Hover animation to the Image.

Zoom Out
<!DOCTYPE html>
  <html>
<head>
  <title>Zoom Out</title>
</head>
<style>
figure {
	width: 300px;
	height: 200px;
	margin: 0;
	padding: 0;
	background: #fff;
	overflow: hidden;
}

/* Zoom Out #1 */
.hover03 figure img {
	-webkit-transform: scale(1.5);
	transform: scale(1.5);
	-webkit-transition: .3s ease-in-out;
	transition: .3s ease-in-out;
}
.hover03 figure:hover img {
	-webkit-transform: scale(1);
	transform: scale(1);
}



</style>
  <body>
<div class="hover03 ">
  <div>
    <figure><img src="https://i.ibb.co/MpspPKq/03.jpg" /></figure>
  </div>
</div>
  </body>
  </html>


4.Zoom Out #2

Add zoom-out Hover animation to the Image

Zoom Out
<!DOCTYPE html>
  <html>
<head>
  <title>Zoom Out</title>
</head>
<style>
figure {
	width: 300px;
	height: 200px;
	margin: 0;
	padding: 0;
	background: #fff;
	overflow: hidden;
}

/* Zoom Out #2 */
.hover04 figure img {
	width: 400px;
	height: auto;
	-webkit-transition: .3s ease-in-out;
	transition: .3s ease-in-out;
}
.hover04 figure:hover img {
	width: 300px;
}


</style>
  <body>
<div class="hover04 ">
  <div>
    <figure><img src="https://i.ibb.co/MpspPKq/03.jpg" /></figure>
  </div>
</div>
  </body>
  </html>

5.Slide

Add slide Hover animation to the Image

slide

<!DOCTYPE html>
  <html>
<head>
  <title>slide</title>
</head>
<style>
figure {
	width: 300px;
	height: 200px;
	margin: 0;
	padding: 0;
	background: #fff;
	overflow: hidden;
}

/* Slide */
.hover05 figure img {
	margin-left: 30px;
	-webkit-transform: scale(1.5);
	transform: scale(1.5);
	-webkit-transition: .3s ease-in-out;
	transition: .3s ease-in-out;
}
.hover05 figure:hover img {
	margin-left: 0;
}

</style>
  <body>
<div class="hover05 ">
  <div>
    <figure><img src="https://i.ibb.co/MpspPKq/03.jpg" /></figure>
  </div>
</div>
  </body>
  </html>

6.Rotate(+Zoom Out)

Add rotate Hover animation to the Image

Rotate
<!DOCTYPE html>
  <html>
<head>
  <title>Rotate</title>
</head>
<style>
figure {
	width: 300px;
	height: 200px;
	margin: 0;
	padding: 0;
	background: #fff;
	overflow: hidden;
}


/* Rotate */
.hover06 figure img {
	-webkit-transform: rotate(15deg) scale(1.4);
	transform: rotate(15deg) scale(1.4);
	-webkit-transition: .3s ease-in-out;
	transition: .3s ease-in-out;
}
.hover06 figure:hover img {
	-webkit-transform: rotate(0) scale(1);
	transform: rotate(0) scale(1);
}
</style>
  <body>
<div class="hover06">
  <div>
    <figure><img src="https://i.ibb.co/MpspPKq/03.jpg" /></figure>
  </div>
</div>
  </body>
  </html>

7.Blur image

Add blur Hover animation to the Image

blur image
<!DOCTYPE html>
  <html>
<head>
  <title>blur image</title>
</head>
<style>
figure {
	width: 300px;
	height: 200px;
	margin: 0;
	padding: 0;
	background: #fff;
	overflow: hidden;
}


/* Blur */
.hover07 figure img {
	-webkit-filter: blur(3px);
	filter: blur(3px);
	-webkit-transition: .3s ease-in-out;
	transition: .3s ease-in-out;
}
.hover07 figure:hover img {
	-webkit-filter: blur(0);
	filter: blur(0);
}

</style>
  <body>
<div class="hover07">
  <div>
    <figure><img src="https://i.ibb.co/MpspPKq/03.jpg" /></figure>
  </div>
</div>
  </body>
  </html>

8.Gray Scale

Add gray Hover animation to the Image

Gray Scale
<!DOCTYPE html>
  <html>
<head>
  <title>Gray Scale</title>
</head>
<style>
figure {
	width: 300px;
	height: 200px;
	margin: 0;
	padding: 0;
	background: #fff;
	overflow: hidden;
}

/* Gray Scale */
.hover08 figure img {
	-webkit-filter: grayscale(100%);
	filter: grayscale(100%);
	-webkit-transition: .3s ease-in-out;
	transition: .3s ease-in-out;
}
.hover08 figure:hover img {
	-webkit-filter: grayscale(0);
	filter: grayscale(0);
}

</style>
  <body>
<div class="hover08">
  <div>
    <figure><img src="https://i.ibb.co/MpspPKq/03.jpg" /></figure>
  </div>
</div>
  </body>
  </html>

9.Sepia image hover effect

Add sepia Hover animation to the Image

Sepia
<!DOCTYPE html>
  <html>
<head>
  <title>Sepia </title>
</head>
<style>
figure {
	width: 300px;
	height: 200px;
	margin: 0;
	padding: 0;
	background: #fff;
	overflow: hidden;
}

/* Sepia */
.hover09 figure img {
	-webkit-filter: sepia(100%);
	filter: sepia(100%);
	-webkit-transition: .3s ease-in-out;
	transition: .3s ease-in-out;
}
.hover09 figure:hover img {
	-webkit-filter: sepia(0);
	filter: sepia(0);
}
</style>
  <body>
<div class="hover09">
  <div>
    <figure><img src="https://i.ibb.co/MpspPKq/03.jpg" /></figure>
  </div>
</div>
  </body>
  </html>

10.Blur + Gray Scale

Add blur with gray Hover animation to the Image

Blur + Gray Scale
<!DOCTYPE html>
  <html>
<head>
  <title>Blur + Gray Scale </title>
</head>
<style>
figure {
	width: 300px;
	height: 200px;
	margin: 0;
	padding: 0;
	background: #fff;
	overflow: hidden;
}

/* Blur + Gray Scale */
.hover10 figure img {
	-webkit-filter: grayscale(0) blur(0);
	filter: grayscale(0) blur(0);
	-webkit-transition: .3s ease-in-out;
	transition: .3s ease-in-out;
}
.hover10 figure:hover img {
	-webkit-filter: grayscale(100%) blur(3px);
	filter: grayscale(100%) blur(3px);
}</style>
  <body>
<div class="hover10">
  <div>
    <figure><img src="https://i.ibb.co/MpspPKq/03.jpg" /></figure>
  </div>
</div>
  </body>
  </html>

11.image Opacity #1

Add opacity Hover animation to the Image

image Opacity
<!DOCTYPE html>
  <html>
<head>
  <title>image Opacity</title>
</head>
<style>
figure {
	width: 300px;
	height: 200px;
	margin: 0;
	padding: 0;
	background: #fff;
	overflow: hidden;
}


/* Opacity #1 */
.hover11 figure img {
	opacity: 1;
	-webkit-transition: .3s ease-in-out;
	transition: .3s ease-in-out;
}
.hover11 figure:hover img {
	opacity: .5;
}
</style>
  <body>
<div class="hover11">
  <div>
    <figure><img src="https://i.ibb.co/MpspPKq/03.jpg" /></figure>
  </div>
</div>
  </body>
  </html>

12.image Opacity #2

Add opacity Hover animation to the Image

image Opacity
<!DOCTYPE html>
  <html>
<head>
  <title>image Opacity</title>
</head>
<style>
figure {
	width: 300px;
	height: 200px;
	margin: 0;
	padding: 0;
	background: #fff;
	overflow: hidden;
}


/* Opacity #2 */
.hover12 figure {
	background: #1abc9c;
}
.hover12 figure img {
	opacity: 1;
	-webkit-transition: .3s ease-in-out;
	transition: .3s ease-in-out;
}
.hover12 figure:hover img {
	opacity: .5;
}
</style>
  <body>
<div class="hover12">
  <div>
    <figure><img src="https://i.ibb.co/MpspPKq/03.jpg" /></figure>
  </div>
</div>
  </body>
  </html>

13.Flashing image effect

Add flashing Hover animation to the Image

Flashing
<!DOCTYPE html>
  <html>
<head>
  <title>Flashing</title>
</head>
<style>
figure {
	width: 300px;
	height: 200px;
	margin: 0;
	padding: 0;
	background: #fff;
	overflow: hidden;
}

/* Flashing */
.hover13 figure:hover img {
	opacity: 1;
	-webkit-animation: flash 1.5s;
	animation: flash 1.5s;
}
@-webkit-keyframes flash {
	0% {
		opacity: .4;
	}
	100% {
		opacity: 1;
	}
}
@keyframes flash {
	0% {
		opacity: .4;
	}
	100% {
		opacity: 1;
	}
}

</style>
  <body>
<div class="hover13">
  <div>
    <figure><img src="https://i.ibb.co/MpspPKq/03.jpg" /></figure>
  </div>
</div>
  </body>
  </html>

14.Shine

Add shine Hover animation to the Image

Shine
<!DOCTYPE html>
  <html>
<head>
  <title>Shine</title>
</head>
<style>
figure {
	width: 300px;
	height: 200px;
	margin: 0;
	padding: 0;
	background: #fff;
	overflow: hidden;
}

/* Shine */
.hover14 figure {
	position: relative;
}
.hover14 figure::before {
	position: absolute;
	top: 0;
	left: -75%;
	z-index: 2;
	display: block;
	content: '';
	width: 50%;
	height: 100%;
	background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
	background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
	-webkit-transform: skewX(-25deg);
	transform: skewX(-25deg);
}
.hover14 figure:hover::before {
	-webkit-animation: shine .75s;
	animation: shine .75s;
}
@-webkit-keyframes shine {
	100% {
		left: 125%;
	}
}
@keyframes shine {
	100% {
		left: 125%;
	}
}

</style>
  <body>
<div class="hover14">
  <div>
    <figure><img src="https://i.ibb.co/MpspPKq/03.jpg" /></figure>
  </div>
</div>
  </body>
  </html>

15.Circle

Add circle Hover animation to the Image

Circle
<!DOCTYPE html>
  <html>
<head>
  <title>Circle</title>
</head>
<style>
figure {
	width: 300px;
	height: 200px;
	margin: 0;
	padding: 0;
	background: #fff;
	overflow: hidden;
}

/* Circle */
.hover15 figure {
	position: relative;
}
.hover15 figure::before {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	display: block;
	content: '';
	width: 0;
	height: 0;
	background: rgba(255,255,255,.2);
	border-radius: 100%;
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	opacity: 0;
}
.hover15 figure:hover::before {
	-webkit-animation: circle .75s;
	animation: circle .75s;
}
@-webkit-keyframes circle {
	0% {
		opacity: 1;
	}
	40% {
		opacity: 1;
	}
	100% {
		width: 200%;
		height: 200%;
		opacity: 0;
	}
}
@keyframes circle {
	0% {
		opacity: 1;
	}
	40% {
		opacity: 1;
	}
	100% {
		width: 200%;
		height: 200%;
		opacity: 0;
	}
}
</style>
  <body>
<div class="hover15">
  <div>
    <figure><img src="https://i.ibb.co/MpspPKq/03.jpg" /></figure>
  </div>
</div>
  </body>
  </html>


Spread the love

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *