Skip to content

Latest commit

ย 

History

39 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽ‚ 3D Birthday Cake Experience๐Ÿฅฐ

Create a magical birthday moment with an interactive 3D cake that responds to your touchโ€”or your breath! Perfect for birthdays, virtual parties, or just a cheerful surprise.


โœจ What Makes This Special

  • ๐Ÿฐ Personalized 3D Cake
    A beautifully animated cake featuring your name in festive decorations

  • ๐Ÿ•ฏ๏ธ Interactive Candles
    Blow into your microphone to extinguish digital candles (mobile-friendly tap/hug option available!)

  • ๐ŸŽถ Birthday Soundtrack
    Classic "Happy Birthday" melody to set the celebratory mood

  • ๐ŸŽ‰ Visual Festivities
    Sparkling effects, confetti showers, and celebratory lighting

  • ๐Ÿ“ฑ Universal Access
    Enjoy the experience on any deviceโ€”desktop, tablet, or phone


๐ŸŽฌ Experience Walkthrough

1. Personalize Your Cake

Name Input
Enter your name (or a friend's!) to customize your celebration

2. Start the Celebration

Start Button
Click to beginโ€”your cake and music will start simultaneously

3. Cake Reveal

Cake with Song
Watch as your 3D birthday cake appears with accompanying music

4. Candle Moment

Blow Candles
Get ready to blow out the candles using your microphone

5. Final Celebration

Final Celebration
Enjoy personalized congratulations with sparkles and confetti


๐Ÿš€ Demo

No downloads โ€ข No registration โ€ข Instant celebration


๐Ÿ› ๏ธ TECHNICAL STUFF (FOR NERDS WHO LIKE NERDY THINGS)

  • Three.js = "3D Cake Baker" ๐Ÿฐ
  • Web Audio API = "Ear Whisperer & Breath Detective" ๐ŸŽค๐Ÿ•ต๏ธ
  • JavaScript = "Party Planner" ๐Ÿ“‹
  • HTML/CSS = "Decoration Committee" ๐ŸŽจ
  • Your Breath = "THE MAIN INGREDIENT!" ๐Ÿ’จ

๐Ÿค“ WANNA HOST YOUR OWN PARTY? HERE'S HOW:

# 2. Enter the party room!
cd three-js-birthday-cake

# 3. Bring party snacks (dependencies)!
npm install

# 4. Start the music!
npm run dev

# 5. INVITE FRIENDS! (Share the URL)
#    (Friends optional but recommended for maximum fun)

Development

  1. Clone the repository
  2. Install dependencies with yarn
  3. Run the project with yarn dev

Credits


๐Ÿ“ฑ๐Ÿ“ Tips for the Best Experience

  • Turn up your volume to fully enjoy the song and sound effects.
  • To blow out the candles:
    • On desktop: Blow strongly and briefly near your microphone (like real candles!)
    • On mobile: Long-press (hold) anywhere on the screen
  • Use modern browsers: Chrome, Edge, or Firefox recommended.

๐Ÿ› ๏ธ Technologies Used

  • Three.js โ€“ 3D rendering of the cake and candles
  • Web Audio API โ€“ Real-time blow detection via microphone
  • HTML5 Audio โ€“ Playing the birthday song
  • Vanilla JavaScript โ€“ No frameworks
  • Modern CSS โ€“ Animations and responsive layout

๐Ÿ‘ค Personalization

The entered name is displayed in the final message:
"Happy Birthday, [Your Name]!"

๐Ÿ“‚ Project Structure

-a----        12/24/2025  10:42 PM         922221 happy-birthday.mp3
-a----        12/26/2025  11:09 PM          13165 index.html
-a----        12/26/2025  10:00 PM           1093 LICENSE
-a----        12/22/2025   4:56 PM          27184 package-lock.json
-a----        12/21/2025   3:55 PM            437 package.json
-a----        12/26/2025  10:00 PM           3273 README.md
-a----        12/26/2025  11:55 PM          34310 script.js
-a----        12/26/2025  11:16 PM          12032 style.css
-a----        12/21/2025   3:55 PM         198400 table.png
-a----        12/21/2025   3:55 PM            397 vite.config.js
-a----        12/22/2025   4:56 PM           4425 yarn.lock


๐Ÿ“„ License

This project is licensed under the MIT License โ€“ see the LICENSE file for details.

About

๐ŸŽ‚ Blow out virtual candles in this 3D birthday cake! Three.js + Web Audio API | Interactive WebGL experience

Topics

Resources

Stars

27 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages