A special, interactive birthday celebration website created with love and personalized messages. This website showcases heartfelt messages, beautiful memories, and emotional moments through an engaging and interactive experience.
- Title: "Why You're My Best Friend! 💖"
- Interactive button to reveal hidden reasons and messages
- Shows a shuffled list of special reasons why someone is amazing
- Counter to track how many messages have been revealed
- Personalized ending message with a special teddy hug image
- Title: "Our Beautiful Memories ✨"
- Displays beautiful memory cards with images
- Click-to-Reveal Messages: Click on any image to reveal heartfelt messages
- Only one card opens at a time for focused reading
- Cute instruction message to guide the experience
- Final personalized message section at the bottom
- Auto-Play Music: Background music starts automatically when the page loads
- Persistent Playback: Music continues seamlessly when navigating between pages
- Volume Control: Adjustable volume slider (0-100%)
- Play/Pause Button: Easy control with intuitive button feedback
- Visual Feedback: Button shows 🎵 (paused) or ⏸️ (playing)
- Animated gradient background with smooth color transitions
- Floating heart animations throughout the page
- Sparkle effects and magical ambient animations
- Smooth hover and click animations on memory cards
- Bouncing instruction text to draw attention
- Responsive design that works on all devices
- Click-to-Reveal: Click any memory card image to show/hide the date and caption
- One at a Time: Only one card reveals at a time for better focus
- Smooth Transitions: Elegant fade-in/fade-out animations
- Shuffle Button on cause.html to reveal different reasons
- Music Control Button for play/pause
- Volume Slider for audio adjustment
- HTML5 - Semantic markup and audio elements
- CSS3 - Advanced animations, gradients, and responsive design
- JavaScript - Interactive functionality and session storage for music persistence
- Session Storage - Maintains music state across page navigation
.
├── cause.html # First page - Birthday reasons
├── cause.css # Styles for cause page
├── cause.js # Logic for cause page
├── last.html # Second page - Memory cards
├── style.css # Additional styles
├── script.js # Additional scripts
├── index.html # Optional landing page
├── bgmusic.mp3 # Background music (required)
├── d1.png # Memory image 1
├── d2.png # Memory image 2
├── d3.png # Memory image 3
├── d1.jpg # Teddy hug image
└── README.md # This file
- Place Background Music: Add your
bgmusic.mp3file in the same folder as the HTML files - Add Images: Ensure all image files (d1.png, d2.png, d3.png, d1.jpg) are in the directory
- Open in Browser: Open
cause.htmlorlast.htmlin a web browser - Enjoy: Experience the interactive birthday celebration!
The website uses session storage to remember:
- Current music playback position
- Play/pause state
- Volume level
- When you navigate from one page to another, the music continues exactly where it left off
- Auto-play music creates immediate emotional resonance
- Click-to-reveal messages encourage engagement
- Beautiful animations and transitions enhance the experience
- Personalized messages and images create a unique connection
- Intuitive interface with clear visual feedback
- Cute icons and emojis for better engagement
- Responsive design for all screen sizes
- Smooth transitions between states
- No jarring interruptions or resets
Edit the HTML files directly to customize:
- Memory card messages in
last.html - Reasons in the JavaScript data in
cause.html - Final messages and text
Modify the CSS color values:
- Pink theme:
#ff69b4,#da70d6 - Background gradients in the
<style>sections
Replace the image files (d1.png, d2.png, d3.png, d1.jpg) with your own
- ✅ Chrome/Edge (Latest)
- ✅ Firefox (Latest)
- ✅ Safari (Latest)
- ✅ Mobile Browsers
Note: Autoplay audio may require user interaction on some browsers. The music will play after the user interacts with the page.
- 🎂 Birthday celebrations
- 💕 Anniversaries and special occasions
- 👭 Best friend tributes
- 🎁 Personalized digital gifts
- 💌 Heartfelt digital messages
Created with 💖 for someone special
Enjoy navigating through the beautiful memories and heartfelt messages!