Skip to content
MarkasUI
Type to search

    Guide

    MarkasUI

    Form

    Feedback

    Overlay

    Navigation

    Data

    Sections

    Animations

    Backgrounds

    Buttons

    Templates

    Pages

    Shooting Stars

    A twinkling star field with a shooting star streaking across every few seconds. Night or warm dawn sky, all from token colors.

    Private beta

    Make a wish, then ship it

    Turn a one line idea into a working preview before your coffee gets cold.

    Private beta

    Make a wish, then ship it

    Turn a one line idea into a working preview before your coffee gets cold.

    Private beta

    Make a wish, then ship it

    Turn a one line idea into a working preview before your coffee gets cold.

    Private beta

    Make a wish, then ship it

    Turn a one line idea into a working preview before your coffee gets cold.

    Private beta

    Make a wish, then ship it

    Turn a one line idea into a working preview before your coffee gets cold.

    <x-markas.shooting-stars class="rounded-xl border border-line bg-surface px-6 py-14">
        <div class="grid justify-items-center gap-4 text-center">
            <p class="text-sm font-medium text-muted">Private beta</p>
            <h2 class="text-2xl font-semibold text-balance text-ink">Make a wish, then ship it</h2>
            <p class="max-w-80 text-sm text-muted">Turn a one line idea into a working preview before your coffee gets cold.</p>
            <x-markas.button>Join the waitlist</x-markas.button>
        </div>
    </x-markas.shooting-stars>
    import { Button } from "@/components/markas/Button";
    import { ShootingStars } from "@/components/markas/ShootingStars";
    
    export default function ShootingStarsExample() {
      return (
        <ShootingStars className="rounded-xl border border-line bg-surface px-6 py-14">
          <div className="grid justify-items-center gap-4 text-center">
            <p className="text-sm font-medium text-muted">Private beta</p>
            <h2 className="text-2xl font-semibold text-balance text-ink">
              Make a wish, then ship it
            </h2>
            <p className="max-w-80 text-sm text-muted">
              Turn a one line idea into a working preview before your coffee gets
              cold.
            </p>
            <Button>Join the waitlist</Button>
          </div>
        </ShootingStars>
      );
    }
    <script setup lang="ts">
    import Button from "@/components/markas/Button.vue";
    import ShootingStars from "@/components/markas/ShootingStars.vue";
    </script>
    
    <template>
      <ShootingStars class="rounded-xl border border-line bg-surface px-6 py-14">
        <div class="grid justify-items-center gap-4 text-center">
          <p class="text-sm font-medium text-muted">Private beta</p>
          <h2 class="text-2xl font-semibold text-balance text-ink">
            Make a wish, then ship it
          </h2>
          <p class="max-w-80 text-sm text-muted">
            Turn a one line idea into a working preview before your coffee gets
            cold.
          </p>
          <Button>Join the waitlist</Button>
        </div>
      </ShootingStars>
    </template>
    <script lang="ts">
      import Button from "$lib/components/markas/Button.svelte";
      import ShootingStars from "$lib/components/markas/ShootingStars.svelte";
    </script>
    
    <ShootingStars class="rounded-xl border border-line bg-surface px-6 py-14">
      <div class="grid justify-items-center gap-4 text-center">
        <p class="text-sm font-medium text-muted">Private beta</p>
        <h2 class="text-2xl font-semibold text-balance text-ink">
          Make a wish, then ship it
        </h2>
        <p class="max-w-80 text-sm text-muted">
          Turn a one line idea into a working preview before your coffee gets cold.
        </p>
        <Button>Join the waitlist</Button>
      </div>
    </ShootingStars>
    ---
    import Button from "@/components/markas/Button.astro";
    import ShootingStars from "@/components/markas/ShootingStars.astro";
    ---
    
    <ShootingStars class="rounded-xl border border-line bg-surface px-6 py-14">
      <div class="grid justify-items-center gap-4 text-center">
        <p class="text-sm font-medium text-muted">Private beta</p>
        <h2 class="text-2xl font-semibold text-balance text-ink">
          Make a wish, then ship it
        </h2>
        <p class="max-w-80 text-sm text-muted">
          Turn a one line idea into a working preview before your coffee gets
          cold.
        </p>
        <Button>Join the waitlist</Button>
      </div>
    </ShootingStars>
    import { Component } from "@angular/core";
    import { Button } from "./markas/button.component";
    import { ShootingStars } from "./markas/shooting-stars.component";
    
    @Component({
      selector: "markas-example",
      imports: [Button, ShootingStars],
      template: `
        <div
          markas-shooting-stars
          class="rounded-xl border border-line bg-surface px-6 py-14"
        >
          <div class="grid justify-items-center gap-4 text-center">
            <p class="text-sm font-medium text-muted">Private beta</p>
            <h2 class="text-2xl font-semibold text-balance text-ink">
              Make a wish, then ship it
            </h2>
            <p class="max-w-80 text-sm text-muted">
              Turn a one line idea into a working preview before your coffee gets
              cold.
            </p>
            <button markas-button>Join the waitlist</button>
          </div>
        </div>
      `,
    })
    export default class ShootingStarsExample {}

    Examples

    Dawn waitlist

    Early access opens at sunrise

    We invite a new group every morning. Leave your email and we will save you a seat.

    Early access opens at sunrise

    We invite a new group every morning. Leave your email and we will save you a seat.

    Early access opens at sunrise

    We invite a new group every morning. Leave your email and we will save you a seat.

    Early access opens at sunrise

    We invite a new group every morning. Leave your email and we will save you a seat.

    Early access opens at sunrise

    We invite a new group every morning. Leave your email and we will save you a seat.

    Night sign-in

    Night shift login

    On call this week? Sign in to see open incidents.

    Night shift login

    On call this week? Sign in to see open incidents.

    Night shift login

    On call this week? Sign in to see open incidents.

    Night shift login

    On call this week? Sign in to see open incidents.

    Night shift login

    On call this week? Sign in to see open incidents.

    Event announcement

    Live, 14 November, 06:00 UTC

    Sunrise Summit: watch the keynote as it lands

    Four talks, one hour, and a few surprises we have kept quiet all year.

    Live, 14 November, 06:00 UTC

    Sunrise Summit: watch the keynote as it lands

    Four talks, one hour, and a few surprises we have kept quiet all year.

    Live, 14 November, 06:00 UTC

    Sunrise Summit: watch the keynote as it lands

    Four talks, one hour, and a few surprises we have kept quiet all year.

    Live, 14 November, 06:00 UTC

    Sunrise Summit: watch the keynote as it lands

    Four talks, one hour, and a few surprises we have kept quiet all year.

    Live, 14 November, 06:00 UTC

    Sunrise Summit: watch the keynote as it lands

    Four talks, one hour, and a few surprises we have kept quiet all year.

    Installation

    npx markasui@latest add shooting-stars

    Usage

    <x-markas.shooting-stars variant="night" frequency="normal" trail-color="primary" class="dark rounded-xl bg-canvas px-6 py-14">
        <h2 class="text-2xl font-semibold text-ink">Make a wish, then ship it</h2>
        <x-markas.button>Join the waitlist</x-markas.button>
    </x-markas.shooting-stars>

    No JavaScript or Alpine.js needed.

    import { Button } from "@/components/markas/Button";
    import { ShootingStars } from "@/components/markas/ShootingStars";
    
    <ShootingStars
      variant="night"
      frequency="normal"
      trailColor="primary"
      className="dark rounded-xl bg-canvas px-6 py-14"
    >
      <h2 className="text-2xl font-semibold text-ink">Make a wish, then ship it</h2>
      <Button>Join the waitlist</Button>
    </ShootingStars>;
    <template>
      <ShootingStars
        variant="night"
        frequency="normal"
        trail-color="primary"
        class="dark rounded-xl bg-canvas px-6 py-14"
      >
        <h2 class="text-2xl font-semibold text-ink">Make a wish, then ship it</h2>
        <Button>Join the waitlist</Button>
      </ShootingStars>
    </template>
    <script lang="ts">
      import Button from "$lib/components/markas/Button.svelte";
      import ShootingStars from "$lib/components/markas/ShootingStars.svelte";
    </script>
    
    <ShootingStars
      variant="night"
      frequency="normal"
      trailColor="primary"
      class="dark rounded-xl bg-canvas px-6 py-14"
    >
      <h2 class="text-2xl font-semibold text-ink">Make a wish, then ship it</h2>
      <Button>Join the waitlist</Button>
    </ShootingStars>
    ---
    import Button from "@/components/markas/Button.astro";
    import ShootingStars from "@/components/markas/ShootingStars.astro";
    ---
    
    <ShootingStars
      variant="night"
      frequency="normal"
      trailColor="primary"
      class="dark rounded-xl bg-canvas px-6 py-14"
    >
      <h2 class="text-2xl font-semibold text-ink">Make a wish, then ship it</h2>
      <Button>Join the waitlist</Button>
    </ShootingStars>
    import { Component } from "@angular/core";
    import { Button } from "./markas/button.component";
    import { ShootingStars } from "./markas/shooting-stars.component";
    
    @Component({
      selector: "app-waitlist",
      imports: [Button, ShootingStars],
      template: `
        <div
          markas-shooting-stars
          variant="night"
          frequency="normal"
          trailColor="primary"
          class="dark rounded-xl bg-canvas px-6 py-14"
        >
          <h2 class="text-2xl font-semibold text-ink">Make a wish, then ship it</h2>
          <button markas-button>Join the waitlist</button>
        </div>
      `,
    })
    export class Waitlist {}

    Angular uses an attribute selector on the native div, so class, aria-*, and other attributes stay on the root element.

    • Three shooting stars share one CSS cycle, so one crosses the sky every third of it. They are invisible for the rest of the cycle.
    • Star and streak positions come from seed with integer math, so all six frameworks render the same sky.
    • This is a separate component from Stars Background, with its own keyframes, so both can sit on the same page.
    • With reduced motion the stars stop twinkling and the streaks stay still.
    • The component has no built-in text, so there are no label props to translate.

    Props

    NameTypeDefaultDescription
    variantnight | dawnnightnight: stars across the whole area. dawn: stars in the upper sky with a warm glow rising from the bottom.
    frequencylow | normal | highnormalHow often a shooting star appears: about every 5, 3, or 1.5 seconds.
    trailColormuted | ink | primary | success | warning | dangerprimary (night), warning (dawn)Token color of the shooting star trail. The head always uses ink.
    starsnumber70Number of twinkling background stars, up to 300.
    seednumber11Whole number that decides star and streak positions. The same seed always gives the same sky.
    children / slotslot / ReactNode-Content shown on top of the sky.

    Accessibility

    • The sky layer is aria-hidden and ignores pointer events.
    • With reduced motion, stars stop twinkling and shooting stars stay still as short streaks.

    Related components

    More backgrounds components with the same classes in every framework.