HTML, CSS & JavaScript 7 min read

Birthday Gift Animation 🎁

Create a stunning happy birthday webpage with animated letters, balloons, hearts, and a sweet letter popup. This project is perfect for gifting a personalized “Happy Birthday” website to someone special.

This “Birthday Gift Animation” project is a full animated landing page. It includes a big “Happy Birthday” title animation, decorative stars/flowers, floating balloons, and a clickable button that opens an animated letter message.

The project is built with plain HTML + CSS animations, and a small JavaScript section (inline) for the typing effect and letter open/close interactions.

📦 Get the Complete Project

Scroll down to the bottom of this page to get the complete project (HTML + CSS + assets).

⬇️ Download link available after Project Assets section

📄 Complete HTML Code

Copy this entire file into index.html. This includes the inline JavaScript (typing animation + letter open/close).

index.html
Loading code...

🎨 Complete CSS Code

Copy this entire file into style.css.

style.css
Loading code...

📁 Project Assets

Keep the assets in the same structure so all images load correctly:

pages/
├── assets/
│   └── Birthday Gift Animation/
│       ├── index.html
│       ├── style.css
│       └── Images/
│           ├── 1.png
│           ├── balloon1.png
│           ├── balloon2.png
│           ├── decorate.png
│           ├── decorate_flower.png
│           ├── hat.png
│           ├── heart.png
│           ├── mewmew.gif
│           ├── r5.jpg
│           └── smiley_icon.png
  • All images should be inside Images/
  • You can replace r5.jpg with your own photo
  • Edit the name and message directly inside the HTML

📦 Get Project on GitHub

Download the project source from our GitHub profile.

⬇️ View GitHub

Key Features

  • 🎉 Animated “Happy Birthday” text reveal
  • 🎈 Floating balloon decorations
  • 💗 Heart effects + cute visuals
  • ✉️ Click-to-open animated letter popup
  • ⌨️ Typing effect for the birthday message
  • 📱 Responsive layout

Customization Tips

  • Name: Change the <span>Name</span> text in HTML
  • Date: Update the datetxt value in the script
  • Message: Update the datatxtletter value in the script
  • Photo: Replace Images/r5.jpg with your image

📢 Thanks for your support

English: We keep our projects free thanks to supporters like you. View the content below if you’d like, then press OK to continue to the download.

हिंदी: आप जैसे सपोर्टर्स की वजह से हम ये प्रोजेक्ट मुफ्त रख पाते हैं। नीचे का कंटेंट देख सकते हैं, फिर डाउनलोड के लिए OK दबाएं।