10% off on all-access. Use code SUPER10.
    d :
    h :
    m :
    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 @aceternity/3d-card

    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.

    Build websites faster and 10x better than your competitors with

    Aceternity UI Pro

    Next.js 15, Tailwind CSS v4 and Motion for react powered templates

    200+ templates and blocks combined

    Ready to copy paste component blocks, save days of development time

    Aceternity UI Pro Demo - Light Mode
    Logo
    Aceternity UI

    Access an ever-growing collection of premium, meticulously crafted templates and Component Blocks.

    A product by Aceternity
    Building in public at @mannupaaji

    © 2026 Aceternity Labs LLC. All Rights Reserved.