Glass Stack
A stack of glass cards that fans out on hover. Click to bring the next card to the front.
- 4.3 KB .bexode
- 3 live inputs
- Responsive fit Layout
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
| Input | Type | Default | Range |
|---|---|---|---|
speed | Number | 1 | 0.1 – 4 |
accent | Text | #8b5cf6 | hex colour |
bg | Text | #09080e | hex colour |
Events (via onTrigger): cardCycle