DEV Community

Cover image for tsParticles - New Big Circles Preset, easy to install, beautiful to see
Matteo Bruni for tsParticles

Posted on • Updated on

tsParticles - New Big Circles Preset, easy to install, beautiful to see

tsParticles new preset: Big Circles

tsParticles has a new preset available: Big Circles

You can find it on jsDelivr: https://www.jsdelivr.com/package/npm/tsparticles-preset-big-circles

You can see a sample here:

How to use it

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

<!-- tsParticles library -->
<script src="https://cdn.jsdelivr.net/npm/tsparticles@1.17.8/dist/tsparticles.min.js"></script>

<!-- tsParticles Big Circles preset -->
<script src="https://cdn.jsdelivr.net/npm/tsparticles-preset-big-circles@1.2.9/dist/tsparticles.preset.bigCircles.min.js"></script>
Enter fullscreen mode Exit fullscreen mode
#tsparticles {
  position: fixed;
  width: 100%;
  height: 100%;
}
Enter fullscreen mode Exit fullscreen mode
tsParticles.load("tsparticles", {
  preset: "big-circles"
});
Enter fullscreen mode Exit fullscreen mode

And you're done, you can have this beautiful animation easily in your website.

If you want to customize it, you can still override tsParticles properties in your config like this:

tsParticles.load("tsparticles", {
  particles: {
    shape: {
      type: "square"
    }
  },
  preset: "big-circles"
});
Enter fullscreen mode Exit fullscreen mode

You can see a sample of this configuration here:

And with this configuration you will have colored Big Squares.

GitHub logo matteobruni / tsparticles

tsParticles - Easily create highly customizable JavaScript particles effects, confetti explosions and fireworks animations and use them as animated backgrounds for your website. Ready to use components available for React.js, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Inferno, Solid, Riot and Web Components.

Top comments (0)