Component packs › Clayworks › Press Card

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.

Press Card props

PropTypeDefaultDescription
titlestring
textstring
tagstring
autoplaybooleanShowcase mode: the pointer path is simulated.
onPress() => void

Methods on the ref

Use it in React

import PressCard from './PressCard';

<PressCard />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Clayworks

Good for: Micro-interactions.