Docs
Flip Card

Flip Card

Smooth 3D CSS flip card revealing a back face on hover or click, built with Framer Motion.

PioneerUI

Hover to reveal

What you get

  • 40+ animated components
  • CLI install in one command
  • Dark mode out of the box
  • Full TypeScript support

PioneerUI

Hover to reveal

What you get

  • 40+ animated components
  • CLI install in one command
  • Dark mode out of the box
  • Full TypeScript support

Installation

Usage

import { FlipCard } from "@/components/pioneerui/flip-card"
 
const Front = () => <div className="h-full bg-violet-600 flex items-center justify-center text-white font-bold">Front</div>
const Back = () => <div className="h-full bg-zinc-900 flex items-center justify-center text-white">Back</div>
 
export default function Page() {
  return <FlipCard front={<Front />} back={<Back />} trigger="hover" />
}

Props

PropTypeDefaultDescription
frontReactNodeContent shown on the front face
backReactNodeContent revealed on flip
trigger"hover" | "click""hover"What triggers the flip
widthnumber | string280Card width
heightnumber | string340Card height