1

I am using the tsParticles firework preset but I don't want any sound effects nor the audio controls that appear at the upper-right.

The fireworks preset comes with an option to disable sound, but it does not appear to do anything.

How do I disable the sound effects and hide the audio controls?

Here is what I am doing:

<html>
  <body>
    <div id="tsparticles"></div>

    <script src="https://cdn.jsdelivr.net/npm/tsparticles-preset-fireworks@2/tsparticles.preset.fireworks.bundle.min.js"></script>

    <script>
      (async () => {
        await tsParticles.load("tsparticles", {
          sounds: {
            enable: false,
          },
          preset: "fireworks",
        });
      })();
    </script>

  </body>
</html>
Josh
  • 1,357
  • 2
  • 23
  • 45

0 Answers0