Check out this link for the code snippet
I'm currently working on a project where I want the image to blur and text to smoothly appear upon hover. However, I am facing an issue where the transition effect ends too soon when I stop hovering, causing the text to become unblurred momentarily.
Even after trying different transition timings and properties, the problem persists. I want to achieve a smooth and professional appearance without the text getting blurred. How do I maintain the transition in and out seamlessly?
I attempted setting the blur to 0 directly on the text, but it did not resolve the issue.
#site-circle:hover #circle-title {
-webkit-opacity: 1;
opacity: 1;
-webkit-filter: blur(0px);
-moz-filter: blur(0px);
-ms-filter: blur(0px);
-o-filter: blur(0px);
filter: blur(0px);
Thinking that the blur might be conflicting, I also tried setting a z-index to 999 with no success.
I am unsure of what I may be overlooking or missing. Any guidance or suggestions would be greatly appreciated.
If you prefer not to click on the StackBlitz link, here is the code snippet:
#link-container a {
background-image: url(https://i.ibb.co/Sd6kP7T/Screenshot-155.png);
background-position: top;
text-decoration: none;
}
#link-container #circle-title {
margin-left: 47px;
font-size: 21px;
color: #dbe8d4;
font-family: "Josefin Sans", sans-serif;
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;
}
#link-container:hover a {
-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);
}
#link-container:hover #circle-title {
-webkit-opacity: 1;
opacity: 1;
}
<div id="link-container">
<a href="#" rel="noopener noreferrer">
<div id="circle-title">TEXT</div>
</a>
</div>