HTML5 <audio> playback with fade in and fade out

I’d like to start and stop HTML5 playback in a random position with fade in and fade out periods to smooth the listening experience.

What kind of mechanisms exists for this? Manually ramp up the volume with setTimeout()?

21 thoughts on “HTML5 <audio> playback with fade in and fade out”

Leave a Comment