Transform ordinary birthdays into extraordinary digital experiences.
An immersive, production-ready birthday website template featuring stunning 3D graphics, cinematic animations, and personalization—all through a single configuration file. Built with modern web technologies for desktop, tablet, and mobile.
- 3D Cake with Candles – Tap individual candles to blow them out
- Realistic Confetti – Physics-based confetti animations that respond to actions
- Touch Gestures – Swipe, tap, and pinch gestures optimized for mobile
- Parallax Scrolling – Depth-layered animations as you scroll
- GSAP Scroll Triggers – Scroll-synchronized animations with timeline control
- Framer Motion – Smooth component transitions and entrance effects
- Text Animations – Letter-by-letter reveals and typewriter effects
- Flip Card Memories – Interactive cards with personal photos and messages
- Story Timeline – 8-chapter journey through memories with custom images
- Inspirational Quotes – Personal or funny quotes that celebrate the person
- Custom Sections – Hero intro, entrance gate, grand finale all configurable
- Ambient Music Player – Background music with play/pause controls
- Volume Control – Adjust music without page refresh
- Custom Audio – Easy swap to any birthday playlist
- Mobile-First Design – Optimized touch experience
- Adaptive Layouts – Beautiful on phones, tablets, and desktops
- Performance Optimized – Lazy-loaded assets and 3D culling
- Single Config File – All customization in
src/config/birthday.ts - TypeScript – Full type safety and IDE support
- Production-Ready – CI/CD with GitHub Actions included
- Zero-Config Deployment – Works with Vercel, GitHub Pages, or any Node.js host
| Tech | Purpose | Version |
|---|---|---|
| Next.js | React framework with server rendering | 16.2 |
| React | Component library | 19.2 |
| Three.js | 3D graphics engine | 0.185 |
| React Three Fiber | React renderer for Three.js | 9.6 |
| @react-three/drei | 3D utilities and helpers | 10.7 |
| GSAP | Advanced animations & scroll triggers | 3.15 |
| Framer Motion | React animation library | 12.42 |
| Tailwind CSS | Utility-first styling | 4.0 |
| Canvas Confetti | Confetti particle effects | 1.9 |
| Lenis | Smooth scroll behavior | 1.3 |
- Node.js 18+ (check with
node --version) - npm or yarn package manager
Click Use this template to create your own repository.
git clone https://github.com/<YOUR-USERNAME>/<YOUR-REPO-NAME>.git
cd <YOUR-REPO-NAME>
npm installnpm run devOpen http://localhost:3000 in your browser. Hot reload is enabled—changes save instantly.
Edit src/config/birthday.ts:
// Step 1: Update names and age
const FRIEND_NAME = "Sarah"; // Birthday person
const SENDER_NAME = "Alex"; // Your name
const FRIEND_AGE = 21; // Their ageThat's it! The site auto-generates titles like "Sarah's 21st Birthday" throughout.
All customization happens in src/config/birthday.ts:
export const config = {
// Basic info
friendName: "Sarah",
senderName: "Alex",
friendAge: 21,
// Page sections
hero: { ... }, // Main landing page
entrance: { ... }, // Welcome gate
chapters: [ ... ], // Memory timeline
quotes: [ ... ], // Inspirational messages
cakeSection: { ... }, // Pre/post cake
finaleSection: { ... }, // Grand finale
}hero: {
title: "Sarah's 21st Birthday",
subtitle: "A digital celebration",
tagline: "Click below to enter...",
bgImage: "/assets/hero.png"
}chapters: [
{
title: "Chapter 1: The Beginning",
image: "/assets/chapter1.png",
description: "Our first adventure together"
},
// ... add up to 8 chapters
]friendshipCardsSection: {
cards: [
{
front: "🎂 Best Friend",
back: "You're the sprinkles on my cake!",
emoji: "✨"
},
// ... multiple cards
]
}audio: {
backgroundMusic: "/audio/birthday.mp3",
volume: 0.5,
autoPlay: false
}Replace these placeholder files:
public/
├── assets/
│ ├── hero.png # Main hero image (1024x1024)
│ ├── chapter1-8.png # Memory timeline images
│ ├── cake.png # Cake preview image
│ └── memories/ # Additional photos
└── audio/
└── birthday.mp3 # Background music
Image Recommendations:
- Format: PNG or JPG (WebP for best compression)
- Size: 1024x1024px for memory cards, 1920x1080px for hero
- Optimization: Use TinyPNG for compression
- Click Candles – Tap individual candles to blow them out
- Blow All – Double-click to extinguish all candles at once
- Confetti Burst – Particle effects on successful blowout
- Realistic Lighting – Dynamic shadows and reflections
- 8 Chapters – Structured story through the relationship
- Parallax Images – Images move independently for depth
- Smooth Transitions – Page sections fade/slide in on scroll
- Mobile-Optimized – Touch-friendly chapter navigation
- Animated Text – Letter-by-letter reveal effect
- Multiple Themes – Funny, inspirational, or heartfelt
- Easy Customization – Add/remove quotes in config
- Grand Finale Animation – Celebration sequence
- Confetti Shower – Full-screen particle celebration
- Closing Message – Personal farewell message
- Music Crescendo – Audio cue for the finale
npm run build
npm run start- Push to GitHub
- Visit vercel.com
- Import repository → Auto-deploys on every push
- Done! Your site is live globally with CDN caching
Pre-configured with GitHub Actions:
- Go to repo Settings → Pages
- Select GitHub Actions as source
- Push changes—auto-deploys to
https://<username>.github.io/<repo-name>
npm run build
npm start # Runs on port 3000Deploy the .next directory to any Node.js host (Heroku, Railway, etc.).
Birthday-template/
├── src/
│ ├── app/
│ │ ├── layout.tsx # Root layout with metadata
│ │ └── page.tsx # Main entry point
│ ├── components/
│ │ ├── Hero.tsx # Landing section
│ │ ├── Cake3D.tsx # Interactive 3D cake
│ │ ├── MemoryCards.tsx # Flip cards component
│ │ ├── Timeline.tsx # Memory chapters
│ │ ├── Quotes.tsx # Quotes section
│ │ ├── MusicPlayer.tsx # Audio controls
│ │ └── Finale.tsx # Grand finale
│ ├── config/
│ │ └── birthday.ts # ⭐ Central configuration
│ ├── styles/
│ │ └── globals.css # Global styles
│ └── utils/
│ ├── animations.ts # GSAP configurations
│ └── helpers.ts # Utility functions
├── public/
│ ├── assets/ # Images & media
│ │ └── *.png
│ └── audio/
│ └── birthday.mp3
├── .github/
│ └── workflows/
│ └── deploy.yml # CI/CD pipeline
├── package.json
├── tsconfig.json
├── tailwind.config.ts
└── next.config.ts
# Development
npm run dev # Start dev server with hot reload (localhost:3000)
# Production
npm run build # Build optimized production bundle
npm run start # Run production server locally
# Code Quality
npm run lint # Check for ESLint violations
npm run lint:fix # Auto-fix linting issues
# Deployment
npm run export # Export static site (if needed)- ✅ Use WebP images for 30% smaller files
- ✅ Keep background music under 3MB
- ✅ Compress images: max 1024x1024px for thumbnails
- ✅ Test on mobile at 3G speeds
- ✅ Keep copy concise (under 100 chars per section)
- ✅ Use high-quality photos (sharp and well-lit)
- ✅ Match theme colors for cohesive design
- ✅ Test across devices before sharing
- ✅ Add alt text to all images
- ✅ Ensure sufficient color contrast
- ✅ Include keyboard navigation
- ✅ Provide music toggle option
npm run dev -- -p 3001NODE_OPTIONS=--max_old_space_size=4096 npm run build- Check file paths in
birthday.tsmatchpublic/assets/exactly - Ensure file extensions are lowercase (
.png, not.PNG) - Verify image files exist in the directory
- Check browser console for errors (F12)
- Verify
canvas-confettiis installed:npm list canvas-confetti - Ensure browser allows canvas rendering
Found a bug or have an idea? Contributions are welcome!
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request with description
This project is open source under the MIT License. See LICENSE file for details.
You're free to:
- ✅ Use commercially
- ✅ Modify and distribute
- ✅ Use privately
- ❌ Hold liable
- 🐛 Bug Reports – Open an issue
- 💬 Questions – Start a discussion
- ⭐ Like it? – Star the repo to show support!
Share your celebration at #BirthdayTemplate on social media!
- Multi-language support (i18n)
- Photo gallery lightbox
- Video message integration
- Guest book / comment section
- Custom color themes
- Social media sharing buttons
- Analytics tracking
Made with ❤️ by VisionStack-404
Transform birthdays. Celebrate digitally. Create memories.