I have encountered a challenge that I need help with. On a webpage, there are multiple images of varying sizes. I am looking to create a feature where hovering over an image triggers the appearance of a div above it containing a button and text without disrupting the layout. The button should be positioned above the text. Below is the code snippet I currently have on my page along with a link to a JSFiddle for reference:
Here is the JSFiddle.
<html lang="en">
...
</html>
.blurry-text {
color: transparent;
text-shadow: 0 0 5px rgba(0, 0, 0, 1);
}
...
.profileImage{
border: 5px solid white;
}
I would like to achieve an effect similar to effect 13 on this webpage when hovering over the profile image:
Currently, creating the overlay div above the image causes unintended layout changes. Here are two screenshots showcasing the issue: https://i.sstatic.net/9pJkv.png https://i.sstatic.net/FOcCE.jpg
PS: Image Credit by Gerd Altmann from Pixabay