ham7a311

Ribbon Flow

Backgrounds

About

An animated canvas background of translucent, silk-like ribbons that drift and glow where they overlap, with a reduced-motion fallback and pointer-reactive bending.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Ribbon Flow to your project and fits it to your theme.

Code

How Ribbon Flow is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { RibbonFlow } from "@/components/ui/ribbon-flow";

const THEMES: Record<string, { colors: string[]; bg: string }> = {
  aurora: {
    colors: ["#8fa8d8", "#a898e0", "#7fc4c8", "#d8a8c8"],
    bg: "#08060c",
  },
  ember: {
    colors: ["#e8a24a", "#d8704a", "#f0c890", "#a85a6a"],
    bg: "#0b0706",
  },
  mono: { colors: ["#efe8dc", "#a7a1ab", "#b9cce4"], bg: "#08070a" },
};

export default function Demo({ variant = "aurora" }: { variant?: string }) {
  const t = THEMES[variant] ?? THEMES.aurora;
  return (
    <div className="relative w-full h-screen">
      <RibbonFlow
        colors={t.colors}
        background={t.bg}
        className="h-full min-h-full w-full"
      >
        <div className="pointer-events-none flex h-full items-end p-6">
          <p className="font-mono text-[11px] uppercase tracking-[0.16em] text-white/50">
            Silk · {t.colors.length} ribbons
          </p>
        </div>
      </RibbonFlow>
    </div>
  );
}

More by ham7a311

View all
  • Wave Mesh

    Wave Mesh

    137
  • Route Globe

    Route Globe

    125
  • Glass Tiles

    Glass Tiles

    109
  • Glyph Swell

    Glyph Swell

    50
  • Orbit Ring Stats

    Orbit Ring Stats

    47
  • Ask Bar

    Ask Bar

    38
  • Glass Ribbons

    Glass Ribbons

    30
  • Intent Label

    Intent Label

    29

More in Backgrounds

View all
  • Elegant Dark Pattern

    Elegant Dark Pattern

    880
  • Background snippets

    Background snippets

    16
  • Light theme Tailwind CSS Background Snippet

    Light theme Tailwind CSS Background Snippet

    242
  • Tailwind CSS Background Snippet

    Tailwind CSS Background Snippet

    587
  • Jade Sky

    Jade Sky

    99
  • LivingOrigami bg

    LivingOrigami bg

    155
  • Gradient Backgrounds

    Gradient Backgrounds

    28
  • Background Components

    Background Components

    47