A visually stunning 3D rotating card built with HTML, CSS, and JavaScript. The card flips on click using CSS 3D transforms, revealing hidden content on the back. Perfect for portfolios, testimonials, pricing cards, flashcards, and more!
- π Click-to-flip 3D rotating animation
- π Dual-sided content (front and back)
- π¨ Stylish gradient background for both sides
- βοΈ Smooth transitions with preserve-3d effect
- π± Responsive, interactive, and lightweight
- π§ Built with pure HTML, CSS & JavaScript (no libraries)
index.html: Main HTML structurestyle.css: Styling, gradients, 3D transformsscript.js: Handles the flip interaction on click
π View Live Demo
-
Clone the repository:
git clone https://github.com/codewithoyem/3d-rotating-card-ui-100daysofcode.git cd 3d-rotating-card-ui-100daysofcode -
Open the HTML file:
open index.html
- Open the page in your browser.
- Click the card to flip it.
- Click again to flip it back.
You can customize:
- Card content (front/back)
- Background gradients
- Flip direction (Y
βοΈ X) in style.css
Feel free to fork, improve, or customize!
- Fork this repository
- Create a new branch
- Make your changes
- Submit a Pull Request
- Created by CODEWITHOYEM
- π§ mailto:oyem@crisent.com
- π oyem.crisent.com
- π¦ @codewithoyem
This project is licensed under the MIT License and is available for use under the MIT License.
