David AI · Hero

Hero animation

Columns of horizontal harmonic bands inside a rolling wave that flash through the brand gradient as crests pass. Every video is a 1920 × 640, 60 fps, 16 s seamless loop. The animation on this page is the code embed, running live.

  1. Video on background

    H.264 · .mp4 · on #f1f2ea · 12.1 MB

    For slides, social posts, and pages with the same background.

    Download MP4
  2. Transparent video (source)

    ProRes 4444 with alpha · .mov · 269 MB

    For video editors and motion tools (Premiere, After Effects, Final Cut, DaVinci Resolve).

    Download MOV
  3. Transparent video (for browser)

    WebM (VP9) 11.5 MB · MOV (HEVC) 17.7 MB, both with alpha

    Small transparent videos for a <video> tag on a website. Browsers need different formats, so use both files.

    Add it to a page

    Upload both files and replace the two src paths. Keep the Safari file first: each browser plays the first file it supports, and Chrome, Edge, and Firefox skip it when they can’t.

    <video autoplay loop muted playsinline width="960" height="320">
      <source src="hero-1920x640-60fps-hevc.mov" type='video/mp4; codecs="hvc1.1.6.L120.B0"'>
      <source src="hero-1920x640-60fps-vp9.webm" type="video/webm">
    </video>
  4. Lottie (dotLottie)

    hero-animation.lottie · 302 KB · 30 fps · 16 s seamless loop

    Lightweight vector animation. Drop directly into Webflow’s Lottie element, or play on any site with dotLottie.

    Download .lottie

    Add it to plain HTML (optional)

    In Webflow, upload hero-animation.lottie to Assets and drop it into a Lottie Animation element (no code needed). Outside Webflow, use the web component below:

    <script src="https://unpkg.com/@lottiefiles/dotlottie-wc@0.8.5/dist/dotlottie-wc.js" type="module"></script>
    <dotlottie-wc src="https://YOUR-HOST/hero-animation.lottie" autoplay loop style="aspect-ratio: 3 / 1; width: 100%;"></dotlottie-wc>
  5. Code embed

    hero-animation.js · 8 KB (4 KB gzipped) · no dependencies

    A live, real-time version for websites. Works in Webflow, plain HTML, or any framework.

    Download JS

    1. Load the script once, before </body>

    Host hero-animation.js on your site or CDN. In Webflow: Site settings → Custom code → Footer code.

    <script src="https://YOUR-HOST/hero-animation.js"></script>

    2. Add the attribute to any div with a size

    In Webflow: select a Div Block, then Settings → Custom attributes → name data-hero-animation, no value. Give it a width and a height or aspect ratio.

    <div data-hero-animation style="aspect-ratio: 3 / 1"></div>

    Options (all optional)

    Attribute Default Range What it does
    data-columns 26 6 – 80 Number of vertical columns across the width.
    data-speed 1 0 – 4 Motion speed. 0 is a still frame.
    data-colors brand 1 – 4 hex colors Crest flash gradient colors, such as #00c2a8, #2700eb. Fewer than 4 repeat.
    data-start visible visible, load, manual When it starts. With manual, call HeroAnimation.mount(el).play().

    Good to know

    • It pauses when scrolled off screen and shows a still frame for visitors who turn on reduced motion.
    • Elements added after the page loads (CMS lists, modals) start after one call to HeroAnimation.mountAll().
    • Pure 2D Canvas — no WebGL required. Works in every modern browser and scales sharply at any container size.