Sonu kumar

Rotating Planes Animation

Component

About

This code implements a self-contained React component that renders a 3D animation of rotating planes. It uses inline styles, CSS variables, and keyframes defined within the component itself for a clean and independent implementation. The animation is achieved without external libraries beyond React and leverages Tailwind CSS for styling.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Rotating Planes Animation to your project and fits it to your theme.

Code

How Rotating Planes Animation is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import RotatingPlanes from "@/components/ui/rotating-planes-animation";

export default function DemoOne() {
  const animationKeyframes = `
    @keyframes spin-3d {
      from {
        transform: perspective(1000px) rotateX(0deg);
      }
      to {
        transform: perspective(1000px) rotateX(360deg);
      }
    }
  `;
  
  return (
    <div className="flex min-h-screen w-full items-center justify-center bg-[#854775]">
      <style>{animationKeyframes}</style>
      <RotatingPlanes />
    </div>
  );
}

More by Sonu kumar

View all
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.4K
  • Modern Hero

    Modern Hero

    1.4K
  • Text Parallax Content (scroll)

    Text Parallax Content (scroll)

    1.2K
  • About Us section

    About Us section

    1.2K
  • Modern Animated Hero Section

    Modern Animated Hero Section

    1.1K
  • Animated Hero Section

    Animated Hero Section

    689
  • Cuisine Selector Chips

    Cuisine Selector Chips

    585
  • Bounce card features

    Bounce card features

    573