I have a simple div element that I wanna apply a background shape to it when the user hovers over it by using the ::before
and ::after
pseudo elements. I rotated these elements with rotateX()
. How can I style it that the elements shouldn't overlap each other (or at least not ruin the background color) but it should look like a single shape?
Tried using % but didn't work.
Please help. Thanks so much