-
-
Save SaraSoueidan/5733690 to your computer and use it in GitHub Desktop.
Play Audio on :hover
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//http://css-tricks.com/examples/SoundOnHover/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--We're going to use HTML5 here, no Flash. We'll need an audio element with both MP3 (WebKit, IE) and OGG (Firefox, Opera). | |
--> | |
<audio controls preload="auto"> | |
<source src="audio/beep.mp3" controls></source> | |
<source src="audio/beep.ogg" controls></source> | |
Your browser isn't invited for super fun audio time. | |
</audio> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment