No description
  • JavaScript 72.4%
  • HTML 21.4%
  • CSS 6.2%
Find a file
Raphaël Bastide c22b8e31ec style
2026-03-08 09:29:33 +01:00
css style 2026-03-08 09:29:33 +01:00
js style 2026-03-08 09:29:33 +01:00
index.html typos git add README.md index.html 2025-10-28 21:21:36 +01: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 Custom glyph list in options, custom colors for glyph list, gelly theme depends on player’s width, multiple declaration bug fix 2025-11-02 22:09:25 +01: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

Options: TODO

TODO

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

License

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