Skip to content
MarkasUI
Type to search

    Guide

    MarkasUI

    Form

    Feedback

    Overlay

    Navigation

    Data

    Sections

    Animations

    Backgrounds

    Buttons

    Templates

    Pages

    Ripple Background

    Concentric circles that pulse outward from the center, great behind a logo, avatar, or status icon.

    Connect your favorite tools

    Bring in GitHub, Slack, and Figma. Updates flow both ways.

    Connect your favorite tools

    Bring in GitHub, Slack, and Figma. Updates flow both ways.

    Connect your favorite tools

    Bring in GitHub, Slack, and Figma. Updates flow both ways.

    Connect your favorite tools

    Bring in GitHub, Slack, and Figma. Updates flow both ways.

    Connect your favorite tools

    Bring in GitHub, Slack, and Figma. Updates flow both ways.

    <div class="overflow-hidden rounded-xl border border-line bg-surface">
      <x-markas.ripple-background :size="88" :gap="56" class="grid h-48 place-items-center border-b border-line bg-canvas">
        <span class="grid size-14 place-items-center rounded-full border border-line bg-surface text-ink">
          <svg class="size-6" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 14a3.5 3.5 0 0 0 5 0l3-3a3.5 3.5 0 0 0-5-5l-1 1" /><path d="M14 10a3.5 3.5 0 0 0-5 0l-3 3a3.5 3.5 0 0 0 5 5l1-1" /></svg>
        </span>
      </x-markas.ripple-background>
      <div class="grid justify-items-center gap-3 p-6 text-center">
        <h2 class="text-xl font-semibold text-ink">Connect your favorite tools</h2>
        <p class="max-w-72 text-sm text-muted">Bring in GitHub, Slack, and Figma. Updates flow both ways.</p>
        <x-markas.button>Browse integrations</x-markas.button>
      </div>
    </div>
    import { Button } from "@/components/markas/Button";
    import { RippleBackground } from "@/components/markas/RippleBackground";
    
    export default function RippleBackgroundExample() {
      return (
        <div className="overflow-hidden rounded-xl border border-line bg-surface">
          <RippleBackground
            size={88}
            gap={56}
            className="grid h-48 place-items-center border-b border-line bg-canvas"
          >
            <span className="grid size-14 place-items-center rounded-full border border-line bg-surface text-ink">
              <svg
                className="size-6"
                viewBox="0 0 24 24"
                fill="none"
                stroke="currentColor"
                strokeWidth="1.5"
                strokeLinecap="round"
                strokeLinejoin="round"
                aria-hidden="true"
              >
                <path d="M10 14a3.5 3.5 0 0 0 5 0l3-3a3.5 3.5 0 0 0-5-5l-1 1" />
                <path d="M14 10a3.5 3.5 0 0 0-5 0l-3 3a3.5 3.5 0 0 0 5 5l1-1" />
              </svg>
            </span>
          </RippleBackground>
          <div className="grid justify-items-center gap-3 p-6 text-center">
            <h2 className="text-xl font-semibold text-ink">
              Connect your favorite tools
            </h2>
            <p className="max-w-72 text-sm text-muted">
              Bring in GitHub, Slack, and Figma. Updates flow both ways.
            </p>
            <Button>Browse integrations</Button>
          </div>
        </div>
      );
    }
    <script setup lang="ts">
    import Button from "@/components/markas/Button.vue";
    import RippleBackground from "@/components/markas/RippleBackground.vue";
    </script>
    
    <template>
      <div class="overflow-hidden rounded-xl border border-line bg-surface">
        <RippleBackground
          :size="88"
          :gap="56"
          class="grid h-48 place-items-center border-b border-line bg-canvas"
        >
          <span
            class="grid size-14 place-items-center rounded-full border border-line bg-surface text-ink"
          >
            <svg
              class="size-6"
              viewBox="0 0 24 24"
              fill="none"
              stroke="currentColor"
              stroke-width="1.5"
              stroke-linecap="round"
              stroke-linejoin="round"
              aria-hidden="true"
            >
              <path d="M10 14a3.5 3.5 0 0 0 5 0l3-3a3.5 3.5 0 0 0-5-5l-1 1" />
              <path d="M14 10a3.5 3.5 0 0 0-5 0l-3 3a3.5 3.5 0 0 0 5 5l1-1" />
            </svg>
          </span>
        </RippleBackground>
        <div class="grid justify-items-center gap-3 p-6 text-center">
          <h2 class="text-xl font-semibold text-ink">
            Connect your favorite tools
          </h2>
          <p class="max-w-72 text-sm text-muted">
            Bring in GitHub, Slack, and Figma. Updates flow both ways.
          </p>
          <Button>Browse integrations</Button>
        </div>
      </div>
    </template>
    <script lang="ts">
      import Button from "$lib/components/markas/Button.svelte";
      import RippleBackground from "$lib/components/markas/RippleBackground.svelte";
    </script>
    
    <div class="overflow-hidden rounded-xl border border-line bg-surface">
      <RippleBackground
        size={88}
        gap={56}
        class="grid h-48 place-items-center border-b border-line bg-canvas"
      >
        <span
          class="grid size-14 place-items-center rounded-full border border-line bg-surface text-ink"
        >
          <svg
            class="size-6"
            viewBox="0 0 24 24"
            fill="none"
            stroke="currentColor"
            stroke-width="1.5"
            stroke-linecap="round"
            stroke-linejoin="round"
            aria-hidden="true"
          >
            <path d="M10 14a3.5 3.5 0 0 0 5 0l3-3a3.5 3.5 0 0 0-5-5l-1 1" />
            <path d="M14 10a3.5 3.5 0 0 0-5 0l-3 3a3.5 3.5 0 0 0 5 5l1-1" />
          </svg>
        </span>
      </RippleBackground>
      <div class="grid justify-items-center gap-3 p-6 text-center">
        <h2 class="text-xl font-semibold text-ink">Connect your favorite tools</h2>
        <p class="max-w-72 text-sm text-muted">
          Bring in GitHub, Slack, and Figma. Updates flow both ways.
        </p>
        <Button>Browse integrations</Button>
      </div>
    </div>
    ---
    import Button from "@/components/markas/Button.astro";
    import RippleBackground from "@/components/markas/RippleBackground.astro";
    ---
    
    <div class="overflow-hidden rounded-xl border border-line bg-surface">
      <RippleBackground
        size={88}
        gap={56}
        class="grid h-48 place-items-center border-b border-line bg-canvas"
      >
        <span class="grid size-14 place-items-center rounded-full border border-line bg-surface text-ink">
          <svg
            class="size-6"
            viewBox="0 0 24 24"
            fill="none"
            stroke="currentColor"
            stroke-width="1.5"
            stroke-linecap="round"
            stroke-linejoin="round"
            aria-hidden="true"
          >
            <path d="M10 14a3.5 3.5 0 0 0 5 0l3-3a3.5 3.5 0 0 0-5-5l-1 1" />
            <path d="M14 10a3.5 3.5 0 0 0-5 0l-3 3a3.5 3.5 0 0 0 5 5l1-1" />
          </svg>
        </span>
      </RippleBackground>
      <div class="grid justify-items-center gap-3 p-6 text-center">
        <h2 class="text-xl font-semibold text-ink">
          Connect your favorite tools
        </h2>
        <p class="max-w-72 text-sm text-muted">
          Bring in GitHub, Slack, and Figma. Updates flow both ways.
        </p>
        <Button>Browse integrations</Button>
      </div>
    </div>
    import { Component } from "@angular/core";
    import { Button } from "./markas/button.component";
    import { RippleBackground } from "./markas/ripple-background.component";
    
    @Component({
      selector: "markas-example",
      imports: [Button, RippleBackground],
      template: `
        <div class="overflow-hidden rounded-xl border border-line bg-surface">
          <div
            markas-ripple-background
            size="88"
            gap="56"
            class="grid h-48 place-items-center border-b border-line bg-canvas"
          >
            <span
              class="grid size-14 place-items-center rounded-full border border-line bg-surface text-ink"
            >
              <svg
                class="size-6"
                viewBox="0 0 24 24"
                fill="none"
                stroke="currentColor"
                stroke-width="1.5"
                stroke-linecap="round"
                stroke-linejoin="round"
                aria-hidden="true"
              >
                <path d="M10 14a3.5 3.5 0 0 0 5 0l3-3a3.5 3.5 0 0 0-5-5l-1 1" />
                <path d="M14 10a3.5 3.5 0 0 0-5 0l-3 3a3.5 3.5 0 0 0 5 5l1-1" />
              </svg>
            </span>
          </div>
          <div class="grid justify-items-center gap-3 p-6 text-center">
            <h2 class="text-xl font-semibold text-ink">
              Connect your favorite tools
            </h2>
            <p class="max-w-72 text-sm text-muted">
              Bring in GitHub, Slack, and Figma. Updates flow both ways.
            </p>
            <button markas-button>Browse integrations</button>
          </div>
        </div>
      `,
    })
    export default class RippleBackgroundExample {}

    Examples

    Searching state

    Looking for nearby devices

    Keep your phone unlocked and close to this screen.

    Looking for nearby devices

    Keep your phone unlocked and close to this screen.

    Looking for nearby devices

    Keep your phone unlocked and close to this screen.

    Looking for nearby devices

    Keep your phone unlocked and close to this screen.

    Looking for nearby devices

    Keep your phone unlocked and close to this screen.

    Incoming call

    MC

    Calling Maya Chen

    Ringing on desktop and mobile

    MC

    Calling Maya Chen

    Ringing on desktop and mobile

    MC

    Calling Maya Chen

    Ringing on desktop and mobile

    MC

    Calling Maya Chen

    Ringing on desktop and mobile

    MC

    Calling Maya Chen

    Ringing on desktop and mobile

    Compact tile

    Inbox zero

    New replies will show up here as soon as they arrive.

    Inbox zero

    New replies will show up here as soon as they arrive.

    Inbox zero

    New replies will show up here as soon as they arrive.

    Inbox zero

    New replies will show up here as soon as they arrive.

    Inbox zero

    New replies will show up here as soon as they arrive.

    Installation

    npx markasui@latest add ripple-background

    Usage

    <x-markas.ripple-background :size="88" :gap="56" class="grid h-48 place-items-center rounded-xl bg-canvas">
        <span class="grid size-14 place-items-center rounded-full border border-line bg-surface">MC</span>
    </x-markas.ripple-background>

    No JavaScript or Alpine.js needed.

    import { RippleBackground } from "@/components/markas/RippleBackground";
    
    <RippleBackground
      size={88}
      gap={56}
      className="grid h-48 place-items-center rounded-xl bg-canvas"
    >
      <span className="grid size-14 place-items-center rounded-full border border-line bg-surface">
        MC
      </span>
    </RippleBackground>;
    <template>
      <RippleBackground
        :size="88"
        :gap="56"
        class="grid h-48 place-items-center rounded-xl bg-canvas"
      >
        <span
          class="grid size-14 place-items-center rounded-full border border-line bg-surface"
          >MC</span
        >
      </RippleBackground>
    </template>
    <script lang="ts">
      import RippleBackground from "$lib/components/markas/RippleBackground.svelte";
    </script>
    
    <RippleBackground
      size={88}
      gap={56}
      class="grid h-48 place-items-center rounded-xl bg-canvas"
    >
      <span
        class="grid size-14 place-items-center rounded-full border border-line bg-surface"
      >
        MC
      </span>
    </RippleBackground>
    ---
    import RippleBackground from "@/components/markas/RippleBackground.astro";
    ---
    
    <RippleBackground
      size={88}
      gap={56}
      class="grid h-48 place-items-center rounded-xl bg-canvas"
    >
      <span class="grid size-14 place-items-center rounded-full border border-line bg-surface">
        MC
      </span>
    </RippleBackground>
    import { Component } from "@angular/core";
    import { RippleBackground } from "./markas/ripple-background.component";
    
    @Component({
      selector: "app-call",
      imports: [RippleBackground],
      template: `
        <div
          markas-ripple-background
          size="88"
          gap="56"
          class="grid h-48 place-items-center rounded-xl bg-canvas"
        >
          <span
            class="grid size-14 place-items-center rounded-full border border-line bg-surface"
          >
            MC
          </span>
        </div>
      `,
    })
    export class Call {}

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

    • The circles are centered in the component. Center your icon or avatar with grid place-items-center.
    • If the pulse means something, such as searching, also say it in text (for example with role="status").
    • The component has no built-in text, so there are no label props to translate.

    Props

    NameTypeDefaultDescription
    ringsnumber6Number of circles, up to 12.
    sizenumber120Diameter of the innermost circle in pixels.
    gapnumber64How much each circle grows over the previous one, in pixels.
    colormuted | primary | success | warning | dangermutedToken color of the circles. Outer circles fade automatically.
    children / slotslot / ReactNode-Content shown on top of the circles, usually centered.

    Accessibility

    • The circle layer is aria-hidden and ignores pointer events.
    • With reduced motion, the circles stop pulsing.
    • If the pulse means something (for example searching), also say so in text.

    Related components

    More backgrounds components with the same classes in every framework.