Skip to main content

Glass Stack

An interactive 3D stacked deck of frosted glass cards with realistic spring fan-out physics when hovered and a 3D flip-cycle transition on click.

  • 4.3 KB .bexode
  • 3 live inputs
  • Responsive fit Layout
Live runtime

Use it

The code follows your customizations. Install with npm i exodeui.

import { ExodeUICanvas } from 'exodeui';

// glass-stack.bexode goes in /public (download it below)
export function GlassStack() {
  return (
    <ExodeUICanvas
      src="/glass-stack.bexode"
      fit="Layout"   // responsive: redraws at any container size
      autoPlay
      interactive
      onTrigger={(name) => {
        // fires: 'cardCycle'
      }}
      style={{ width: '100%', height: 360 }}
    />
  );
}

Inputs

InputTypeDefaultRange
speedNumber10.1 – 4
accentText#8b5cf6hex colour
bgText#09080ehex colour

Events (via onTrigger): cardCycle