Note this code in your bootstrap CSS file (line 4908)
.close:hover,
.close:focus {
color: #000000;
text-decoration: none;
cursor: pointer;
opacity: 0.5;
filter: alpha(opacity=50);
}
This sets the opacity of a .close
element to 0.5
onHover. Your shade just so happens to have this class, and while it is onScreen, you are hovering over it, setting its minimum opacity to 0.5 until it is removed. If you click close and then quickly move your mouse out of the browser window, the transition is perfect.
Note that this class (.close
) is added to the element when the close button is clicked and removed when the element disappears completely.
As soon as it is removed from the DOM, you stop hovering over it, but at that point, the last 50% opacity is removed instantly.
Remove opacity: 0.5;
and filter: alpha(opacity=50);
and the transition is steady.