I've created a div with the a text inside. I'm trying to create a hover function, which will cause the square div to have semi-transparent edges.
I'm trying to do this with Radial Gradient. But if I try to use transparency, it causes the whole Radial Gradient to become transparent, too.
Is there a way, I could "remove" the middle color so the text will be visible in the middle and have transparency at the white edges?
I've asked around and I've heard that there is a way of "overriding" it. Not sure if that's possible.
I know photoshop would be a good alternative. But I would like to see if there is a way to succeed an effect like this with purely CSS. Or is there any better way for making a box with transparent edges, something more practical than Radial Gradient that I'm missing?
Something like this