A comprehensive, reusable React component showcasing advanced card animations with flip, expand, and layered interactions. Perfect for modern portfolios, dashboards, and showcase websites.
- 3D Flip Animation - Smooth card rotation revealing back content on hover
- Expand Animation - Cards grow dynamically to show additional content
- Layered Effects - Multiple layers separate with staggered animations
- Glow Effects - Customizable hover glow in 6 different colors
- Icon Integration - Seamless Lucide React icon support
- Gradient Backgrounds - Full Tailwind gradient customization
- Responsive Design - Works flawlessly on all screen sizes
- Performance Optimized - Pure CSS transforms, no JavaScript animations
npm install lucide-react
npm install -D tailwindcss postcss autoprefixerAdd to your src/styles.css:
@tailwind base;
@tailwind components;
@tailwind utilities;import InteractiveCard from "./components/InteractiveCard";
import { Code } from "lucide-react";
function App() {
return (
<InteractiveCard
frontContent={<h3 className="text-white text-xl">My Project</h3>}
backContent={<p className="text-white">Built with React</p>}
/>
);
}lucide-react: ^0.263.1 - Modern icon libraryreact: ^19.0.0 - React frameworktailwindcss: 4.1.12 - Utility-fpostcss: 8.5.6autoprefixer: 10.4.21
MIT License - Feel free to use in personal and commercial projects.
- Fork the repository
- Create your feature branch
- Make your changes
- Test on multiple devices
- Submit a pull request
If you have questions or need help implementing:
- Open an issue on GitHub
- Please check Framer Motion documentation
- Review Tailwind CSS documentation
Built with ❤️ by Krishna S (Waller)