Flip Card

3D rotateY flip using CSS preserve-3d and GSAP for precise control.

Component Showcase

Interactive Playground

Adjust sliders and values to preview changes in real-time

width

The width of the flip card.

height

The height of the flip card.

frontTitle

The title shown on the front of the card. Customize this prop for your front text.

frontCategory

Small category text on the front face.

frontHint

Helper action text on the front face.

backTitle

The title shown on the back of the card after flipping.

backHint

Helper action text on the back face.

backEmoji

Emoji icon displayed on the back face.

API Reference (Props)

Component properties and type specifications

PropTypeDefaultDescription
widthstring | number260The width of the flip card.
heightstring | number180The height of the flip card.
frontTitlestring"Flip Card"The title shown on the front of the card. Customize this prop for your front text.
frontCategorystring"Component / Card"Small category text on the front face.
frontHintstring"Click to reveal >"Helper action text on the front face.
backTitlestring"Surprise!"The title shown on the back of the card after flipping.
backHintstring"Click again to flip back"Helper action text on the back face.
backEmojistring"🍉"Emoji icon displayed on the back face.