Vibe Coding Encyclopedia

Looping and fading background music

For each game, the song is set and repeated without a seam, and when it is opened, it gradually · If the scene changes, change it smoothly · Hide the tab and stop · Turn off with the sound button.

Category
Sound

Technical terms · Background music (looping HTMLAudioElement) · Crossfade (fade in · fade out) · Autoplay policy · user gesture · Page Visibility API (visibilitychange)

Related techniques

Technique document (Korean)