Skip to content

Rubber Card

A rubber card: a soft four-cornered body on springs. The corner you grab follows the pointer, the far ones lag and stretch; on release it whips back with bounces. The rubber lightens where it stretches.

Plan
Pro · commercial license
Dependencies
React only
Props
10 (8 adjustable)

Included in Pro and Lifetime. See pricing

ElasticStretch meDrag me fast

Made with Furin: Pill Nav · Metal Button · Copy Morph

Props

PropTypeDefaultDescription
childrenReactNode"sample card"Card content.
sample{ tag?: string; title?: string; hint?: string }"sample texts"Texts of the sample card: tag, title and hint (only visible if you omit children).
widthnumber220Card width, in px.
heightnumber290Card height, in px.
stretchnumber1How much it stretches when dragged fast.
dampingnumber1How lively the return is (lower = more whip).
radiusnumber26Corner radius, in px.
nudgeEverynumber2600Automatic nudge every so many ms to show off the physics (0 = off).
fromstring"#ff5a47"Start color of the sample card.
tostring"#ff2d8a"End color of the sample card.

Installation

With your license

1Set up the Pro registry once

Pro components aren't on npm or in the public shadcn registry: you install them with your license from Furin's private registry.

Use my license

2Install Rubber Card

npx shadcn@latest add @furin-pro/rubber-card

Dependencies

React
18 or later
Other libraries
none
License
commercial

Pro components install into your project: the code is yours and there's nothing else to download.

Keep exploring

  • Text that shoots in like a whiplash: directional motion blur, a trail of copies, anime-style speed lines and a camera shake as it slams to a stop.

    Motion

  • A loading indicator: a metal spinning top (shader with studio reflections, turned finish, knurled ring and anodized stripes) with the real physics of a heavy top: it precesses, nutates, slows by friction, wobbles and gets wound up again. Click to wind it.

    Motion

  • Content appears in fast slices like a strobe: each frame lights different strips with a flash, jitter and chromatic aberration until it settles. A single copy of the content, using CSS masks.

    Motion