Currently in the process of constructing a page with an intriguing background image:
body {
background:url(images/bg.png) center center no-repeat fixed;
-webkit-background-size:cover;
-moz-background-size:cover;
-o-background-size:cover;
background-size:cover
}
Upon loading, there is a div that resembles an alert or message. My aim is to incorporate a brief animation where the background-image gradually darkens.
At the moment, I am utilizing this approach:
back {
background:rgba(0,0,0,.95);
display:block;
height:100%;
left:0;
opacity:1;
position:fixed;
top:0;
width:100%
}
While this method does darken the background, my desire is for it to transition smoothly and gradually in a seamless animation.