What I'm trying to do here is get a transition when this div is frozen.
Everything works fine, it's just a transition that does nothing. I tried using transition properties with transition: all, transition: opacityand transition: background. But none of them work.
This is the property displaythat does this. Because when I accept this, it works. How else can I get around this? Since I obviously want to keep the property displayas it works in all browsers, young and old.
Here is what I have at the moment:
.matrix-overlay {
position: absolute;
width: 100%;
height: 100%;
background: rgb(0,0,0);
background: rgba(0,0,0,0);
color: #fff;
display: none;
-webkit-transition: background 2s;
-o-transition: background 2s;
-moz-transition: background 2s;
transition: background 2s;
}
a:hover .matrix-overlay {
display: block;
background: rgba(0,0,0,0.5);
}
I don't mind if I use opacity or background or something else to control fading, I just don't know what else to do.
Rowan source
share