Jiggicons

Sound

Spatial sound, volume and the browser’s rules.

Every Jiggicon has a sound made for its motion: the material it strikes (brass, wood, glass, paper…) at the moment it strikes it. The sound is placed between your speakers along the path the icon moves. A bell swings left and is heard on the left. A rocket rises to the right.

Press an icon to hear it. Headphones help.

<Bell sound />
<Bell sound volume={0.5} />

Browser rules

Browsers start audio only after the visitor has interacted with the page. Until then a sound is skipped, never queued. So an icon that plays on hover is silent until the first click or key press, and has sound after.

Volume and muting

import { setVolume } from 'jiggicons';

setVolume(0);    // mute every icon
setVolume(0.6);  // or turn them down

Quick repeated plays come out softer, so a burst of clicks never gets loud.

How it works

Nothing is downloaded. Each sound is put together in the browser from the icon’s motion, through a gentle limiter, using Web Audio. It sounds exactly as it does in the library.