A lightweight JavaScript library to easily add sound effects to your web elements.
<div cl-audio="bell.ogg"></div>- Download the
claudio.jsfile and include it in your project. - Add the following script tag to your HTML file:
<script src="path/to/claudio.js"></script>
- Create a folder named
claudioinside your static assets directory to store your sound files.
🎵 cl-audio: Specifies the sound file to play.
🎵 cl-on: Defines the event that triggers the sound.
🎵 soundname: Name of your sound file.
🎵 event: JavaScript event that triggers the sound. Defaults to click.
<element cl-audio="soundname" cl-on="event">Please use this repository for requests, issues, and pull requests.