kettek2/wiki/updates/2018-03-07_12-50.qwk

16 lines
369 B
Plaintext

# Control Audio with CSS
Wrote an experimental "add-on" (JavaScript library) called **css-audio** that allows for defining and controlling audio with CSS custom properties.
Basic Example:
```
button {
--audio-src: url('click.ogg');
}
button:active {
--audio-state: playing;
}
```
See the [github page](https://github.com/kettek/css-audio/) for more information.