Installation
$ pnpm dlx shadcn@latest add @synccn/flip-cardFirst time in this project? Connect synccn with one command.
Usage
import { FlipCard } from "@/components/ui/aurora";<FlipCard front={…} back={…} />API reference
Generated from the component's TypeScript types, so it always matches the code.
FlipCard
Card that flips in 3D to show its back on click or Enter.
PropTypeDescription
- frontrequired
React.ReactNodeContent on the front face.
- backrequired
React.ReactNodeContent on the back face.
- height
numberDefault
220Card height in pixels.
- className
stringExtra classes for the root element.
Dependencies
Read from the component's imports when the site builds. The CLI installs all of these for you.
Helpers
- lib/utilscn (merges class names)
npm packages
- clsx for cn()
- tailwind-merge for cn()
Accessibility
From the source
Read from this component's code when the site builds, so it can't drift.
- ARIA attributes: aria-label, aria-pressed
- Respects the reduced motion setting
- Shows a visible focus ring for keyboard users
More motion
MarqueeEndless scrolling row or column that pauses on hover.Number TickerCounts up to a number when it scrolls into view.TypewriterTypes and deletes a list of phrases.Shimmer TextA light sweep across text for loading moments.Word RotateCycles words with a vertical slide.Text ScrambleCharacters scramble and resolve left to right.