Skip to content
MarkasUI
Type to search

    Guide

    MarkasUI

    Form

    Feedback

    Overlay

    Navigation

    Data

    Sections

    Animations

    Backgrounds

    Buttons

    Templates

    Pages

    Background Beams

    Thin curved light beams that flow, pulse, or fall and splash behind your content. Pure SVG and CSS, no JavaScript.

    Light up your launch

    Release notes, waitlists, and changelogs that people actually read.

    Light up your launch

    Release notes, waitlists, and changelogs that people actually read.

    Light up your launch

    Release notes, waitlists, and changelogs that people actually read.

    Light up your launch

    Release notes, waitlists, and changelogs that people actually read.

    Light up your launch

    Release notes, waitlists, and changelogs that people actually read.

    <x-markas.background-beams class="rounded-xl border border-line bg-surface px-6 py-16">
      <div class="grid justify-items-center gap-4 text-center">
        <h2 class="text-4xl font-bold tracking-tight text-ink">
          Light up your launch
        </h2>
        <p class="max-w-72 text-sm text-muted">
          Release notes, waitlists, and changelogs that people actually read.
        </p>
        <x-markas.button>Join the waitlist</x-markas.button>
      </div>
    </x-markas.background-beams>
    import { BackgroundBeams } from "@/components/markas/BackgroundBeams";
    import { Button } from "@/components/markas/Button";
    
    export default function BackgroundBeamsExample() {
      return (
        <BackgroundBeams className="rounded-xl border border-line bg-surface px-6 py-16">
          <div className="grid justify-items-center gap-4 text-center">
            <h2 className="text-4xl font-bold tracking-tight text-ink">
              Light up your launch
            </h2>
            <p className="max-w-72 text-sm text-muted">
              Release notes, waitlists, and changelogs that people actually read.
            </p>
            <Button>Join the waitlist</Button>
          </div>
        </BackgroundBeams>
      );
    }
    <script setup lang="ts">
    import BackgroundBeams from "@/components/markas/BackgroundBeams.vue";
    import Button from "@/components/markas/Button.vue";
    </script>
    
    <template>
      <BackgroundBeams class="rounded-xl border border-line bg-surface px-6 py-16">
        <div class="grid justify-items-center gap-4 text-center">
          <h2 class="text-4xl font-bold tracking-tight text-ink">
            Light up your launch
          </h2>
          <p class="max-w-72 text-sm text-muted">
            Release notes, waitlists, and changelogs that people actually read.
          </p>
          <Button>Join the waitlist</Button>
        </div>
      </BackgroundBeams>
    </template>
    <script lang="ts">
      import BackgroundBeams from "$lib/components/markas/BackgroundBeams.svelte";
      import Button from "$lib/components/markas/Button.svelte";
    </script>
    
    <BackgroundBeams class="rounded-xl border border-line bg-surface px-6 py-16">
      <div class="grid justify-items-center gap-4 text-center">
        <h2 class="text-4xl font-bold tracking-tight text-ink">
          Light up your launch
        </h2>
        <p class="max-w-72 text-sm text-muted">
          Release notes, waitlists, and changelogs that people actually read.
        </p>
        <Button>Join the waitlist</Button>
      </div>
    </BackgroundBeams>
    ---
    import BackgroundBeams from "@/components/markas/BackgroundBeams.astro";
    import Button from "@/components/markas/Button.astro";
    ---
    
    <BackgroundBeams class="rounded-xl border border-line bg-surface px-6 py-16">
      <div class="grid justify-items-center gap-4 text-center">
        <h2 class="text-4xl font-bold tracking-tight text-ink">
          Light up your launch
        </h2>
        <p class="max-w-72 text-sm text-muted">
          Release notes, waitlists, and changelogs that people actually read.
        </p>
        <Button>Join the waitlist</Button>
      </div>
    </BackgroundBeams>
    import { Component } from "@angular/core";
    import { BackgroundBeams } from "./markas/background-beams.component";
    import { Button } from "./markas/button.component";
    
    @Component({
      selector: "markas-example",
      imports: [BackgroundBeams, Button],
      template: `
        <div
          markas-background-beams
          class="rounded-xl border border-line bg-surface px-6 py-16"
        >
          <div class="grid justify-items-center gap-4 text-center">
            <h2 class="text-4xl font-bold tracking-tight text-ink">
              Light up your launch
            </h2>
            <p class="max-w-72 text-sm text-muted">
              Release notes, waitlists, and changelogs that people actually read.
            </p>
            <button markas-button>Join the waitlist</button>
          </div>
        </div>
      `,
    })
    export default class BackgroundBeamsFixture {}

    Examples

    Pulsing newsletter card

    The Friday digest

    One email a week with the best product updates. No spam.

    The Friday digest

    One email a week with the best product updates. No spam.

    The Friday digest

    One email a week with the best product updates. No spam.

    The Friday digest

    One email a week with the best product updates. No spam.

    The Friday digest

    One email a week with the best product updates. No spam.

    Colliding beams feature section

    Built for impact

    Every deploy lands safely, no matter how fast you ship.

    • 99.99%

      Uptime

    • 40 ms

      Edge latency

    • 1 click

      Rollback

    Built for impact

    Every deploy lands safely, no matter how fast you ship.

    • 99.99%

      Uptime

    • 40 ms

      Edge latency

    • 1 click

      Rollback

    Built for impact

    Every deploy lands safely, no matter how fast you ship.

    • 99.99%

      Uptime

    • 40 ms

      Edge latency

    • 1 click

      Rollback

    Built for impact

    Every deploy lands safely, no matter how fast you ship.

    • 99.99%

      Uptime

    • 40 ms

      Edge latency

    • 1 click

      Rollback

    Built for impact

    Every deploy lands safely, no matter how fast you ship.

    • 99.99%

      Uptime

    • 40 ms

      Edge latency

    • 1 click

      Rollback

    Always-dark hero

    Every signal, one view

    Logs, traces, and alerts flow into a single timeline your team can trust.

    Every signal, one view

    Logs, traces, and alerts flow into a single timeline your team can trust.

    Every signal, one view

    Logs, traces, and alerts flow into a single timeline your team can trust.

    Every signal, one view

    Logs, traces, and alerts flow into a single timeline your team can trust.

    Every signal, one view

    Logs, traces, and alerts flow into a single timeline your team can trust.

    Installation

    npx markasui@latest add background-beams

    Usage

    <x-markas.background-beams variant="flow" :count="10" class="rounded-xl bg-surface px-6 py-16">
        <h2 class="text-center text-3xl font-bold text-ink">Light up your launch</h2>
    </x-markas.background-beams>

    No JavaScript or Alpine.js needed.

    import { BackgroundBeams } from "@/components/markas/BackgroundBeams";
    
    <BackgroundBeams
      variant="flow"
      count={10}
      className="rounded-xl bg-surface px-6 py-16"
    >
      <h2 className="text-center text-3xl font-bold text-ink">
        Light up your launch
      </h2>
    </BackgroundBeams>;
    <template>
      <BackgroundBeams
        variant="flow"
        :count="10"
        class="rounded-xl bg-surface px-6 py-16"
      >
        <h2 class="text-center text-3xl font-bold text-ink">
          Light up your launch
        </h2>
      </BackgroundBeams>
    </template>
    <script lang="ts">
      import BackgroundBeams from "$lib/components/markas/BackgroundBeams.svelte";
    </script>
    
    <BackgroundBeams
      variant="flow"
      count={10}
      class="rounded-xl bg-surface px-6 py-16"
    >
      <h2 class="text-center text-3xl font-bold text-ink">Light up your launch</h2>
    </BackgroundBeams>
    ---
    import BackgroundBeams from "@/components/markas/BackgroundBeams.astro";
    ---
    
    <BackgroundBeams
      variant="flow"
      count={10}
      class="rounded-xl bg-surface px-6 py-16"
    >
      <h2 class="text-center text-3xl font-bold text-ink">
        Light up your launch
      </h2>
    </BackgroundBeams>

    No client-side JavaScript; the markup is rendered on the server.

    import { Component } from "@angular/core";
    import { BackgroundBeams } from "./markas/background-beams.component";
    
    @Component({
      selector: "app-hero",
      imports: [BackgroundBeams],
      template: `
        <div
          markas-background-beams
          variant="flow"
          [count]="10"
          class="rounded-xl bg-surface px-6 py-16"
        >
          <h2 class="text-center text-3xl font-bold text-ink">
            Light up your launch
          </h2>
        </div>
      `,
    })
    export class Hero {}

    The component is an attribute on a div, so class, style, and other attributes stay on the root element.

    • flow sends a glint along each curve, pulse fades curves in turn, collide drops vertical beams that splash at the bottom edge.
    • With collide, add bottom padding (for example pb-16) so the splashes land below your content.
    • Beam positions come from a formula, so every framework renders the same picture.
    • The component has no built-in text, so there are no label props to translate.

    Props

    NameTypeDefaultDescription
    variantflow | pulse | collideflowflow sends a glint along each curve, pulse fades whole curves in and out, collide drops vertical beams that splash at the bottom.
    countnumber8Number of beams, up to 16.
    speedslow | normal | fastnormalLength of one animation cycle: 12s, 7s, or 4s.
    colormuted | primary | success | warning | dangerprimaryToken color of the beams.
    children / slotslot / ReactNode / snippet-Content shown on top of the beams.

    Accessibility

    • The beam layer is aria-hidden and ignores pointer events.
    • With reduced motion, beams stay still in a fixed, readable position.
    • Positions come from a formula, so the server and client render the same markup.

    Related components

    More backgrounds components with the same classes in every framework.