Skip to content

Add Animated Falling Hearts Feature & UI Improvements#2

Open
tmsachith wants to merge 1 commit intoReal-Sam:mainfrom
tmsachith:main
Open

Add Animated Falling Hearts Feature & UI Improvements#2
tmsachith wants to merge 1 commit intoReal-Sam:mainfrom
tmsachith:main

Conversation

@tmsachith
Copy link

🎉 Feature: Animated Falling Hearts

This PR adds a beautiful falling hearts animation feature that enhances the birthday wish experience.

✨ New Features

  • Colorful falling hearts that animate in the background while the birthday message is being typed
  • Hearts appear with 7 different colors (various shades of pink and red) with low opacity for a subtle effect
  • Smooth animations with rotation effects as hearts fall down the screen
  • Hearts spawn continuously (5 per second) with random sizes (20-40px) and varying fall durations (3-6s)

🐛 Bug Fixes

  • Removed white flash bug: Fixed the jarring white screen transition that appeared when the tree moved to the right

🔧 Technical Implementation

  • Added createHeart() and startHeartRain() functions in function.js
  • Added .falling-heart CSS class and @keyframes fall animation in default.css
  • Modified moveAnimate() function to eliminate the white background flash
  • Heart animation starts automatically when text typing begins

📹 Demo

The falling hearts create a romantic, festive atmosphere that enhances the emotional impact of the birthday message.


Contribution by: @tmsachith

- Added animated colorful hearts that fall in the background when text is typing
- Hearts appear with random colors (7 different pink/red shades) and low opacity (0.4)
- Smooth falling animation with rotation effect
- Hearts spawn every 200ms with varying sizes (20-40px) and durations (3-6s)
- Removed white flash transition bug for smoother user experience
-

Technical changes:
- Added createHeart() and startHeartRain() functions in function.js
- Added .falling-heart CSS class and @Keyframes fall animation in default.css
- Modified moveAnimate() to remove jarring white background flash
- Integrated heart animation to start when text begins typing
@khushigosavi07-bit
Copy link

Hello

1 similar comment
@khushigosavi07-bit
Copy link

Hello

@tmsachith
Copy link
Author

if you like my implementations please review and accept my pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants