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

matteobruni

Matteo Bruni

Posted on August 17, 2020

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.

πŸ’– πŸ’ͺ πŸ™… 🚩
matteobruni
Matteo Bruni

Posted on August 17, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related