How profkarim22/birthday-gift-webapp works
This is a browser-based birthday greeting: a visitor starts an animated countdown, opens an envelope, advances through photo slides, and reaches a heart-shaped photo collage and closing message. The runtime is concentrated in script.js, which also handles ambient visuals and audio. The excerpts show the interaction hooks, slideshow-to-collage transition, and media-loading support; the README is empty, and index.html and style.css were not sampled, so their wiring is not represented.
Main entry points: script.js Interaction runtime · Cards_Photos Card photos · Heart_Photos Heart photos · Sound.mp3 Sound track
Components 12
Greeting experience
- Interaction runtime
script.js - Matrix countdown
script.js - Envelope interaction
script.js - Photo slideshow
script.js - Heart collage
script.js - Closing scene
script.js
Media and ambience
- Ambient effects
script.js - Background audio
script.js - Card photos
Cards_Photos - Heart photos
Heart_Photos - Sound track
Sound.mp3
Other components
- Visitor
Connections 10
- Visitor → Envelope interaction: clicks or presses
script.js - Interaction runtime → Matrix countdown: runs sequence
script.js - Envelope interaction → Photo slideshow: advances slides
script.js - Photo slideshow → Heart collage: launches collage
script.js - Heart collage → Closing scene: shows message
script.js - Interaction runtime → Ambient effects: creates effects
script.js - Interaction runtime → Background audio: initializes playback
script.js - Background audio → Sound track: tries audio candidates
script.js - Photo slideshow → Card photos: loads folder images
script.js - Heart collage → Heart photos: loads folder images
script.js