My website features a large background image, with the following code:
body{
background-image: url(../images/front/bg.jpg);
background-position: center center;
background-size:cover;
padding:0;
margin:0;
width:100%;
height:100%;
}
I am looking to add a smooth black curtain effect when an element is selected to display its text or image. A great example of this can be seen at this link. When you click on any menu, the background darkens. How can I implement this effect on my own website?