Skip to content

Card Stack

A deck you throw from the top. The top card follows the finger and leans the way it is pulled, a hairline of heat warming its leading edge; past the line or with enough speed it flies off and the cards behind rise one place, otherwise it springs home.

$149 once · every Pro piece

Customize

Undo brings the last card back in from the side it left.

Install

npx shadcn@latest add @obsyde/card-stack

Needs your licence key · Get Pro

Usage

Import it from where the CLI puts it, or copy the files below by hand.

import { CardStack } from '@/components/obsyde/ember/card-stack/CardStack';

export function Example() {
  return (
    <CardStack />
  );
}

Files

What you get with Pro: plain React, TypeScript and CSS, with no dependencies.

  • ember/card-stack/CardStack.tsxcomponent
  • ember/card-stack/card-stack-demo.cssstyles
  • ember/card-stack/card-stack.cssstyles
  • ember/card-stack/CardStackDemo.tsxdemo
  • ember/kit2-kit/kit.tsshared
  • ember/shared/spring.tsshared
  • ember/shared/accent.tsshared
  • ember/shared/ember.cssshared

API

PropTypeDefault
accentAccent'ember' | 'volt' | 'arc''ember'
countCardsnumber6
thresholdThrow distancenumber0.4
depthVisible behindnumber3
tiltLeannumber14