I created a div that is simply an image, but when hovered, the original div is masked by another div with some text and a plain colored background.
Here is what I mean in jsfiddle: 'Mask on Hover'
The code all seems to work, including some nice css transitions. The problem I'm having is that both the original div and the mask div have a border-radius BUT as I hover over them the border-radius disappears for a second and then suddenly returns. For some reason every now and then it will also glitch and just remain without a border-radius at all while I'm hovering.
Is there any way to keep this from happening at all? Maybe a way to keep the content inside that div no matter what? I've tried using overflow:none
as well as actually putting a border
but it continues to happen.