Sound Module ⟋ js
Needed sound, made sound (module).
Configurable to play on hover or click.
Might add stuffs to it, just comment if you need anything. Not particularly elegant but 🤷.
Random sounds from soundly.
👀
CHANGELOG
06/04/22 ‖ If first click is on a trigger sound plays directly instead of separating the Audio Context creation from the triggering. Never written something less clear in my life I think :)
How to.
Please host the code yourself if used in production as stuffs might break or I might make weird changes. If you follow the link provided in the page code you'll find yourself in a codesandbox, where there will be a .js.txt file. Download that, put it in wf, get the link and link that as a script. Thanks!