🚀 Follow @wearepixelflow on Instagram for more premium UI animations and web development content.
A modern 3D Social Flip Button built with React, Framer Motion, Tailwind CSS, and React Icons. Each button displays a letter on the front and smoothly flips to reveal its corresponding social media icon when hovered. The component also features animated tooltips and subtle border animations for a premium UI experience.
- 🎴 Smooth 3D flip animation
- 🚀 Built with Framer Motion
- 🎨 Tailwind CSS styling
- 💬 Animated tooltips
- 🌙 Light & Dark mode support
- ⚡ Sequential hover animation
- 🔗 Supports links and custom click handlers
- 🧩 Easily customizable
- 📱 Responsive design
👉 Click here to watch the animation
- React
- TypeScript
- Framer Motion
- Tailwind CSS
- React Icons
Clone the repository:
git clone https://github.com/wearepixelflow/social-cta.gitNavigate into the project:
cd social-flip-buttonInstall dependencies:
npm installRun the development server:
npm run devnpm install framer-motion react-iconssrc/
│
├── components/
│ └── SocialFlipButton.tsx
│
├── lib/
│ └── utils.ts
│
└── app/
└── page.tsx
Import the component:
import SocialFlipButton from "@/components/SocialFlipButton";Render it:
<SocialFlipButton />You can provide your own social items.
const items = [
{
letter: "G",
icon: <FaGithub />,
label: "GitHub",
href: "https://github.com",
},
{
letter: "X",
icon: <FaTwitter />,
label: "Twitter",
href: "https://twitter.com",
},
];
<SocialFlipButton items={items} />;| Prop | Type | Description |
|---|---|---|
items |
SocialItem[] |
Custom social buttons |
className |
string |
Wrapper styling |
itemClassName |
string |
Individual button styling |
frontClassName |
string |
Front face customization |
backClassName |
string |
Back face customization |
You can easily customize:
- Colors
- Border radius
- Animation speed
- Spring physics
- Tooltip style
- Icons
- Labels
- Container spacing
- Button size
- Hover delay
- React
- TypeScript
- Framer Motion
- Tailwind CSS
- React Icons
Contributions are welcome!
- Fork the repository.
- Create a feature branch.
- Commit your changes.
- Push your branch.
- Open a Pull Request.
Made by Pixelflow with ❤️ for developers who love creating beautiful UI interactions.