Video Banner

The video banner contains a self-hosted video that extends the width of the page.

When to use

Use the video banner component to feature a video as a banner on a page.

Anatomy

Video Banner Anatomy

1. Video (required)

2. Play/Pause Button (required)

Examples

<div class="ucla-banner__video" style="min-height: 436px">
  <span aria-hidden="true" class="ucla-banner__video_overlay ucla-opacity-60 ucla-has-background-black"></span>
  <button class="ucla-banner__video_button-control playing">
    <svg width="40" height="40" viewBox="0 0 40 40" fill="none" title="Pause Video" xmlns="http://www.w3.org/2000/svg">
      <g filter="url(#filter0_b_0_1)">
        <circle cx="19.9994" cy="19.9994" r="19.9994" fill="black" fill-opacity="0.65" />
      </g>
      <path d="M13 29H18V11H13V29Z" fill="white" />
      <path d="M22 29H27V11H22V29Z" fill="white" />
      <defs>
        <filter id="filter0_b_0_1" x="-4" y="-4" width="47.9988" height="47.9988" filterUnits="userSpaceOnUse"
          color-interpolation-filters="sRGB">
          <feFlood flood-opacity="0" result="BackgroundImageFix" />
          <feGaussianBlur in="BackgroundImageFix" stdDeviation="2" />
          <feComposite in2="SourceAlpha" operator="in" result="effect1_backgroundBlur_0_1" />
          <feBlend mode="normal" in="SourceGraphic" in2="effect1_backgroundBlur_0_1" result="shape" />
        </filter>
      </defs>
    </svg>
  </button>
  <video autoplay loop muted>
    <source src="../../../theme-assets/video/video-example.webm" />
    <source src="../../../theme-assets/video/video-example.mp4" />
  </video>
  <div class="ucla-banner__video_content py-9 mx-auto">
    <div class="container">
      <div class="ucla-grid cols-2">
        <h2 class="ucla-text-color-white">Lorem
          ipsum dolor sit amet consectetuer adipiscing</h2>
      </div>
    </div>
  </div>
</div>