No description
  • JavaScript 71.9%
  • HTML 22.1%
  • CSS 6%
Find a file
Raphaël Bastide c30a92bee7 fix + doc
2026-06-27 11:10:38 +02:00
css style 2026-03-08 09:29:33 +01:00
js fix + doc 2026-06-27 11:10:38 +02:00
index.html fix + doc 2026-06-27 11:10:38 +02:00
lastly.mp3 code optimisation, additional track 2025-10-23 16:58:18 +02:00
mycophiles.mp3 fiiiiiiiiiiiirst 2025-10-23 15:28:26 +02:00
README.md fix + doc 2026-06-27 11:10:38 +02:00
salad-ship.mp3 fiiiiiiiiiiiirst 2025-10-23 15:28:26 +02:00

Fantasque Player

Demo

Pimp your native HTML players.

Embed the js script fantasque.js then declare the players by their class names like so:

HTML:

<audio controls class="default">
  <source src="salad-ship.mp3" type="audio/mp3">
</audio>

<audio controls class="bluesmoke">
  <source src="mycophiles.mp3" type="audio/mp3">
</audio>

<audio controls class="warmbox">
  <source src="lastly.mp3" type="audio/mp3">
</audio>

Javascript:

fantasque({
  selector: document.querySelectorAll(".default"),
})

fantasque({
  selector: document.querySelectorAll(".bluesmoke"),
  decoOverflow: 10,
  shadow: 5,
  colors: ['blue','cyan', 'blue', 'cyan'],
})

fantasque({
  selector: document.querySelectorAll(".warmbox"),
  theme: "gelly",
})

Available themes: gelly, frame, moods, glyphs. Themes moods and glyphs requires the glyphList option, like glyphList: ["😐","🙂","😃","😍"].

Options: TODO

TODO

  • More styles
  • Improve 4 bands audio analyser (more balance)
  • Testing on various OS / browsers
  • Doc update

License

Except the sound files, the code of Fantasque Player is released under GNU AGPL.