Command Palette

Search for a command to run...

0GitHub stars
Components

Radial dissolve brand card

A Swiss-editorial brand identity bento card featuring a real-time 60fps radial dissolve shader that morphs an 8-spoke emblem across smooth, scanline halftone, and ASCII matrix states, paired with isometric mobile app icon and browser favicon mockups.

Loading…
Dependencies (2)

Overview and background

The Radial dissolve brand card combines tactile Swiss-editorial graphic design with high-performance generative canvas shaders. At its core is an asymmetric 8-spoke radial luminance field that continuously orbits at 60 frames per second. As the emblem rotates, its outer reach is modulated by an angular proximity function where 9 o'clock extends into an elongated comet ray while 3 o'clock condenses into a tight focal point.

The card periodically morphs across three distinct graphic reproduction states: soft analog airbrushed smooth, quantized scanline halftone, and a digital terminal ASCII matrix. Transitions between phases occur through a circular radial wipe mask modulated by quartic easing. Alongside the hero poster card, companion isometric mockups showcase the brand identity in context—as an extruded 30-degree mobile app icon and as an active browser tab complete with favicon, traffic light window controls, and cropped address bar.

Features

  • Real-time 60fps radial shader: Offscreen canvas renders an asymmetric 8-spoke orbital field with sub-pixel anti-aliasing.
  • Three-state visual morphing: Dynamically dissolves between continuous analog smooth, quantized raster halftone, and monospace ASCII glyphs.
  • Quartic circular wipe transitions: Seamless transitions sweep outward from the emblem's center using canvas clipping paths and high-order easing.
  • Companion isometric mockups: Includes a vector 3D extruded mobile smartphone chassis and desktop browser interface to preview multi-platform identity marks.
  • Tactile print grain: Overlaid SVG feTurbulence fractal noise filter delivers an authentic editorial risograph or silkscreen finish.
  • Interactive tactile feedback: Clicking the hero card triggers an instant manual mode transition with responsive spring compression.

Use cases

  • Design systems and brand identity showcases: Presenting dynamic emblems, brand guidelines, and algorithmic logos in agency or portfolio sites.
  • AI research and creative technology labs: Bento grids displaying algorithmic art, model generation parameters, or autonomous agents.
  • Premium SaaS feature highlights: Showcasing multi-platform availability (web app, mobile app, and API service) in a single unified showcase card.

Installation

pnpm dlx shadcn@latest add @abushaidislam/radial-dissolve-brand-card

Usage

import RadialDissolveBrandCard from "@/components/radial-dissolve-brand-card"
<RadialDissolveBrandCard
  brandName="ANOTHER AI THING"
  accentColor="#ED370A"
  autoCycle={true}
  cycleDuration={5800}
  showMockups={true}
/>

Composition

RadialDissolveBrandCard (div.max-w-[672px])
└── Bento Grid Container (div.grid-cols-[324fr_325fr])
    ├── Hero Brand Card (motion.button, aspect-[324/494])
    │   ├── Print Grain Texture (svg with feTurbulence)
    │   ├── Header Bar (MiniRadialMark emblem + Brand Title)
    │   ├── Center Morphing Canvas (RadialDissolveCanvas)
    │   │   ├── Offscreen Luminance Sampler
    │   │   ├── Active Mode Renderer (smooth / halftone / ascii)
    │   │   └── Radial Wipe Mask (canvas clip path)
    │   └── Poetic Inscription (four-line typography)
    └── Companion Mockups Column (div.flex-col)
        ├── Isometric Mobile App Icon Card (svg, 1:1 square)
        │   ├── 3D Phone Chassis Extrusion & Buttons
        │   ├── 30-degree Axonometric Grid
        │   └── Highlighted Brand Squircle
        └── Browser Chrome & Favicon Card (div, aspect-[325/143])
            ├── Tab Strip (Traffic lights + Concave tab + Favicon)
            └── Navigation Bar (Back/Forward/Reload + SSL Pill)

API reference

PropTypeDefaultDescription
brandNamestring"ANOTHER AI THING"Name of the brand displayed in uppercase in the card header and browser tab.
accentColorstring"#ED370A"Primary brand background color (hex format) applied to the card, app icon, and favicon.
poemLinesstring[]DEFAULT_POEM_LINESArray of 4 strings rendered in the bottom-left monospace poetic stanza.
autoCyclebooleantrueWhether to automatically cycle through smooth, halftone, and ASCII dissolve modes.
cycleDurationnumber5800Full duration in milliseconds for one complete 3-act dissolve cycle.
initialMode"smooth" | "halftone" | "ascii""smooth"Starting visual shader mode.
showMockupsbooleantrueWhether to display the companion isometric mobile icon and browser favicon cards.
onModeChange(mode: DissolveMode) => voidundefinedCallback fired whenever the active dissolve mode transitions.

Accessibility

  • Screen readers: The main hero card is an interactive button with an aria-label detailing the current active dissolve mode and prompting the user that activating it will cycle the visual style.
  • Keyboard navigation: Supports standard keyboard focus, activating mode cycling via Enter or Space key presses with visible high-contrast focus rings.
  • Prefers-reduced-motion: Automatically detects OS motion preferences through useReducedMotion(). When active, continuous orbital rotation pauses and transitions switch modes directly without animated radial wipes.

Frequently asked questions

Can I render the brand card standalone without the right-side mockups?

Yes, simply pass showMockups={false}. The component will automatically constrain its width to the single 324px column, making it ideal for compact sidebars or tighter grid cards.

How are the ASCII characters mapped to the canvas?

An offscreen canvas renders the high-contrast spoke luminance map at 152 x 152px. The ASCII shader samples this buffer across a 38 x 38 grid, mapping pixel alpha thresholds to glyphs (0 for highlights, 1 for midtones, / and > for edges, and . for perimeter dust).

What is the performance overhead of running the canvas animation?

The canvas maintains a solid 60fps by rendering into a hardware-accelerated 2D context using requestAnimationFrame. When the component unmounts or when the user navigates away, the animation frame loop is immediately canceled to prevent memory leaks and unnecessary CPU usage.

License and usage

  • Free to use and modify in both personal and commercial projects.
  • Attribution is appreciated but not required.
  • Released under the MIT License.

Was this helpful?

Command Palette

Search for a command to run...