David AI · Particles

Particles animation

The Pulse orb with colored particles that fly in, land on its edge, and tint the bars where they land. Every video is a 1280 × 1280, 60 fps, 46.5 s seamless loop. The animation on this page is the code embed, running live.

  1. Video on background

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

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

    Download MP4
  2. Transparent video (source)

    ProRes 4444 with alpha · .mov · 1.5 GB

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

    Download MOV
  3. Transparent video (for browser)

    WebM (VP9) 14.4 MB · MOV (HEVC) 14.2 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="640" height="640">
      <source src="particles-1280px-60fps-hevc.mov" type='video/mp4; codecs="hvc1.1.6.L120.B0"'>
      <source src="particles-1280px-60fps-vp9.webm" type="video/webm">
    </video>
  4. Code embed

    particles-animation.js · 56 KB (19 KB gzipped) · no dependencies

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

    Download JS

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

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

    <script src="https://YOUR-HOST/particles-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-particles-animation, no value. Give it a width and a height, such as the hero column.

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

    Options (all optional)

    Attribute Default Range What it does
    data-particles 1 0 – 5 How many particles fly in. 0 shows the orb alone.
    data-speed 1 0 – 4 Motion speed. 0 is a still frame.
    data-size 0.4 0.15 – 0.8 Orb size, as a share of the box’s shorter side.
    data-colors brand 1 – 4 hex colors Orb and particle colors, such as #00c2a8, #2700eb. Fewer than 4 repeat.
    data-fade true true, false Soft round fade at the box edges. Set false for hard edges.
    data-start visible visible, load, manual When it starts. With manual, call ParticlesAnimation.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 ParticlesAnimation.mountAll().
    • It needs WebGL2 (all current browsers). Without it, the div gets data-particles-animation="unsupported", so you can style a fallback image with that selector.