Component packs › Clayworks › Press Card
The card tilts toward you, a soft dent follows your finger across it, and pressing sinks it with a rebound.
Press Card is a card from Clayworks, a component pack with 8 components: Soft clay controls that squash, dent and wobble. Price: $2 for the whole pack.
Built with: travelling dent, parallax content, jelly press.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | ||
text | string | ||
tag | string | ||
autoplay | boolean | Showcase mode: the pointer path is simulated. | |
onPress | () => void |
destroy(): voidimport PressCard from './PressCard';
<PressCard />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Micro-interactions.