Measured entry

tripled-credit-card-shadcnui

hover-effect3dmotion on file

A client-side React credit card display that tilts with pointer movement and flips on click to reveal the security code. It ships as a shadcn registry component and uses Framer Motion, Lucide React, Tailwind utility classes, and shadcn-style theme tokens. It also honors reduced-motion preferences.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of tripled-credit-card-shadcnui at 375 pixels wide
Harness screenshot at 375 pixels wide. This viewport scrolled sideways.
Harness screenshot of tripled-credit-card-shadcnui at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of tripled-credit-card-shadcnui at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

Measured

Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.

Harness measurements recorded for tripled-credit-card-shadcnui
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowflagged at 375
Axe critical0
Axe serious1
Axe moderate0
Axe minor0
Gzip marginal61.0 KB (126.4 KB build, 65.4 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

✗ Build failed in 833ms
error during build:
[vite]: Rollup failed to resolve import "lucide-react" from "<sandbox>re-b31514a26e31/src/cut/components/uitripled/credit-card-shadcnui.tsx".

Verdict

A polished desktop-oriented preview with a convincing flip and sensible reduced-motion behavior. Use it as a visual starting point, but fix narrow-screen sizing, muted-text contrast, and keyboard interaction before shipping it in a payment flow.

Use it if

  • You need a decorative card preview for a checkout, wallet, or payment-method screen.
  • Your interface already uses Tailwind theme tokens and can accommodate Framer Motion.
  • A pointer-driven tilt and click-to-flip interaction fits the product tone.

Skip it if

  • The card must fit narrow mobile layouts without responsive changes.
  • You need production-ready contrast without revising the muted text colors.
  • The flip control must be keyboard accessible and expose button semantics out of the box.
  • You want to avoid adding an animation library for a single decorative element.

Install

Installation record for tripled-credit-card-shadcnui
Declared dependenciesframer-motion, react
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno provider required in the harness

Add React, Framer Motion, and Lucide React, then configure Tailwind with shadcn-style foreground, background, primary, accent, muted, and border theme tokens. Ensure the custom perspective utility is available, or replace it with equivalent CSS.

Source and credit

This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.

Alternatives

Other published entries for the hover-effect pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.