Introducing Aceternity UI Pro - Premium component packs and templates to build awesome websites.
Logo

3D Card Effect

A card perspective effect, hover over the card to elevate card elements.

Make things float in air

Hover over this card to unleash the power of CSS perspective

thumbnail

Installation

Run the following command

npx shadcn@latest add https://ui.aceternity.com/registry/3d-card.json

Examples

With rotation

Make things float in air

Hover over this card to unleash the power of CSS perspective

thumbnail

Props

CardContainer

PropTypeDescription
childrenReact.ReactNodeThe child elements to be rendered within the container.
classNamestringThe CSS class to be applied to the container.
containerClassNamestringThe CSS class to be applied to the outer container.

CardBody

PropTypeDescription
childrenReact.ReactNodeThe child elements to be rendered within the body.
classNamestringThe CSS class to be applied to the body.

CardItem

PropTypeDescription
asReact.ElementTypeThe HTML tag to be used for the item. Defaults to "div".
childrenReact.ReactNodeThe child elements to be rendered within the item.
classNamestringThe CSS class to be applied to the item.
translateXnumber or stringThe X translation of the item.
translateYnumber or stringThe Y translation of the item.
translateZnumber or stringThe Z translation of the item.
rotateXnumber or stringThe X rotation of the item.
rotateYnumber or stringThe Y rotation of the item.
rotateZnumber or stringThe Z rotation of the item.

Get beautiful, hand-crafted templates and components with Aceternity UI Pro

Professional, beautiful and elegant templates for your business. Get the best component packs and templates with Aceternity UI Pro.

Check website

Manu is a genius. He is open-minded, curious and deeply invested in the projects he chooses to work on. He takes your vision and brings it to life -- and is a true partner in th...

Meru Gokhale

Founder at Editorially, Editrix

A product by Aceternity
Building in public at @mannupaaji