0
0 Comments

blur photo caption ,blur photo caption Instagram ,best caption for blur photo

I have a problem.

I wanted to have a picture that blurred on hover, and at the same time making text appear over it.

I’ve found a simple way to blur the image and to make the text appear, but not both at the same time; in fact merging the two codes together make it appear as the picture isn’t blurring at all. I think this is due to the fact that the text actually covers the image and the browser doesn’t receive the message that the image is being hovered.

Here is the image with text over it and here is the image with blur on hover How can I solve that issue? I’m struggling and i think I have found another way of doing it but it’s a bit cumbersome.

Here is some code:

h1,p {
margin: 0;
padding: 0;
}
.imgtext {
color: white;
background: rgba(0,0,0,0.89);
width: 155px;
height: 135px;
padding: 50px 15px 0 15px;
opacity: 0;
position: absolute;
bottom: 0px;
-webkit-transition: all 300ms ease-in-out;
-o-transition: all 300ms ease-in-out;
transition: all 300ms ease-in-out;
}
.pic {
position: relative;
overflow: hidden;
width: 185px;
height: 185px;
margin: 50px auto;
}
.pic img:hover{
-webkit-transition: all 300ms ease-in-out;
-o-transition: all 300ms ease-in-out;
transition: all 300ms ease-in-out;
-webkit-filter: blur(1px);
-moz-filter: blur(1px);
-ms-filter: blur(1px);
-o-filter: blur(1px);
filter: blur(1px);
transform: scale(1.03);
}
.imgtext:hover {
-webkit-opacity: 100;
opacity: 100;
}
<div class=”pic”>
<img src=”http://nicolacornolti.com/photos/film/img/1.png”>
<span class=”imgtext”>
<h1>THIS IS A TITLE</h1>
<p>and this is a description</p>
</span>

 

blur photo caption ,blur photo caption Instagram ,best caption for blur photo

Nilesh Raut Changed status to publish July 21, 2023