I want to apply a CSS3 gradient overlay to a video. I have a feeling this could be to do with z-indexing / stack orders so here is my code.
Div structure:
<div class="wrapper">
<div class="gradient">
<video></video>
</div>
</div>
The CSS I'm using is a background-image radial gradient:
.gradient {
background-image:
radial-gradient(
circle at 36% 48%, #000000,
rgba(11, 39, 65, 0.32) 87%,
rgba(0, 0, 0, 0.0)
);
}
The styling is applied to the gradient div along with position: relative; and z-index: 10; to make the gradient overlay the video.
The gradient doesn't appear at all - how is this achievable?