Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

gradient over background video

.wrapper {
  position: relative;
  width: 100%;
}

.wrapper::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: '';
  background-image: radial-gradient(
    circle at 36% 48%,
    #000000,
    rgba(11, 39, 65, 0.32) 87%,
    rgba(0, 0, 0, 0)
  );
}

video {
  width: 100%;
  aspect-ratio: 4/3;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #gradient #background #video
ADD COMMENT
Topic
Name
3+7 =