3D Card Effect
A card perspective effect, hover over the card to elevate card elements.
Installation
Run the following command
npx shadcn@latest add https://ui.aceternity.com/registry/3d-card.json
Examples
With rotation
Open in ![thumbnail](/_next/image?url=https%3A%2F%2Fimages.unsplash.com%2Fphoto-1441974231531-c6227db76b6e%3Fq%3D80%26w%3D2560%26auto%3Dformat%26fit%3Dcrop%26ixlib%3Drb-4.0.3%26ixid%3DM3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%253D%253D&w=2048&q=75)
Make things float in air
Hover over this card to unleash the power of CSS perspective
Props
CardContainer
Prop | Type | Description |
---|---|---|
children | React.ReactNode | The child elements to be rendered within the container. |
className | string | The CSS class to be applied to the container. |
containerClassName | string | The CSS class to be applied to the outer container. |
CardBody
Prop | Type | Description |
---|---|---|
children | React.ReactNode | The child elements to be rendered within the body. |
className | string | The CSS class to be applied to the body. |
CardItem
Prop | Type | Description |
---|---|---|
as | React.ElementType | The HTML tag to be used for the item. Defaults to "div". |
children | React.ReactNode | The child elements to be rendered within the item. |
className | string | The CSS class to be applied to the item. |
translateX | number or string | The X translation of the item. |
translateY | number or string | The Y translation of the item. |
translateZ | number or string | The Z translation of the item. |
rotateX | number or string | The X rotation of the item. |
rotateY | number or string | The Y rotation of the item. |
rotateZ | number or string | The 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.
Excellent communication and professionalism from the start and throughout. Happily and calmly accepted and entertained a few additional out-of-scope requests as well. Good open-...
Henrik Söderlund
Former CTO at Creme Digital