Skip to content
Cards

FloatingCard

The card bobs gently in the air and its shadow shrinks as it rises. Use delay to put several cards out of step.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
childrenReactNode—Card content.
distancenumber12How high the card rises, in pixels.
durationnumber4Seconds for one rise and fall.
delaynumber0Seconds before it starts.
classNamestringdark violet cardReplaces the default look.