so I am making a website which has come to have a hover gradient that goes over a background image. But one thing I can't seem to make it do, is to transition smoothly. Anyone able to spot the reason why?
tl;dr: I would like to get the gradient to fade in.
Here is my JSfiddle: clicky
CSS:
div.home_wrapper > div.header {
width:calc(70% - 5px);
height:calc(70% - 5px);
position:relative;
margin-top:5px;
float:left;
background-image:url(assets/13.jpg);
background-position:bottom;
background-repeat:no-repeat;
background-size:cover;
transition:background-image 0.25s ease-in-out;
}
div.home_wrapper > div.header:hover {
background-image:-webkit-linear-gradient(rgba(0,0,0,0.01), rgba(0,0,0,0.5)), url(assets/13.jpg);
background-image: -moz-linear-gradient(rgba(0,0,0,0.01), rgba(0,0,0,0.5)), url(assets/13.jpg);
background-image: -o-linear-gradient(rgba(0,0,0,0.01), rgba(0,0,0,0.5)), url(assets/13.jpg);
background-image: linear-gradient(rgba(0,0,0,0.01), rgba(0,0,0,0.5)), url(assets/13.jpg);
}