Components
Loading preview...
Showcase a stunning, purely CSS-driven 3D animation of a MacBook Air with this React component. Leveraging Tailwind CSS for styling and custom CSS keyframes for complex animations, this component brings a realistic and dynamic laptop to life. It includes animations for full 360-degree rotation, lid opening and closing, a screen reflection effect, and even subtle keyboard key presses. Ideal as a hero element, a sophisticated loader, or just a cool visual flourish for your React applications.
@easemize
npx shadcn@latest add https://21st.dev/r/easemize/animated-3d-mac-book-airimport React from 'react';
import { Macbook } from "@/components/ui/animated-3d-mac-book-air";
const Demo: React.FC = () => {
return (
<div className="flex items-center justify-center w-screen h-screen">
{/* The component is absolutely positioned, so this centering div is for context */}
<Macbook />
</div>
);
};
export default Demo;