A minimal, modern greeting web application with celebratory background animations (confetti, party popper burst, and glowing energy pulse).
- Centered UI: Clean, card-based layout centered on the screen.
- Greeting flow:
- Label: "Enter Your Name"
- Text input with placeholder: "Type your name here"
- Button: "Greet"
- Dynamic greeting text shown below the button.
- Animations:
- Three different background effects:
- Confetti fall
- Party-popper radial burst
- Soft glowing burst
- Only one animation runs at a time; the previous one is cleared before the next starts.
- Each button click randomly triggers one of the three animations.
- Three different background effects:
- Keyboard friendly: Press Enter in the text box to trigger the greeting.
You can either open the app directly in a browser or run it with a tiny dev server.
- Navigate to the project folder:
c:\Users\junai\OneDrive\Desktop\SAAS\
- Double-click
index.htmlor open it in your browser of choice.
-
Make sure you have Node.js installed.
-
In a terminal, from the
SAASdirectory, install dependencies:npm install
-
Start the dev server:
npm run dev
-
Your browser should open automatically at
http://localhost:5173with the greeting app.
- UI & layout are defined in
index.htmlandstyles.css. - Behavior & animations are controlled from
script.js:- The button click (or pressing Enter) updates the greeting text.
- A random animation is selected from three factory functions.
- Each animation returns a cleanup function so the JS can stop and remove the previous animation before starting another, ensuring no overlaps.