Get started with tsparticles-preset-big-circles CDN

MIT licensed

This library, tsparticles-preset-big-circles, provides large, customizable circle particles for visually engaging animations in JS.

Tags:
  • tsparticles
  • particles.js
  • particlesjs
  • particles
  • particle
  • canvas
  • jsparticles
  • xparticles
  • particles-js
  • particles-bg
  • particles-bg-vue
  • particles-ts
  • particles.ts
  • react-particles-js
  • react-particles.js
  • react-particles
  • react
  • reactjs
  • vue-particles
  • ngx-particles
  • angular-particles
  • particleground
  • vue
  • vuejs
  • preact
  • preactjs
  • jquery
  • angularjs
  • angular
  • typescript
  • javascript
  • animation
  • web
  • html5
  • web-design
  • webdesign
  • css
  • html
  • css3
  • animated
  • background
  • confetti
  • fireworks
  • fireworks-js
  • confetti-js
  • confettijs
  • fireworksjs
  • canvas-confetti

Stable version

Copied!

How to start using tsparticles-preset-big-circles CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with tsparticles-preset-big-circles CDN - cdnhub.io</title>
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/worksans.min.css"></script>
  <link rel="stylesheet" href="styles.css" />
  <script src="https://cdn.cdnhub.io/tsparticles-preset-big-circles/2.12.0/tsparticles.preset.bigCircles.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/matter-js/0.12.0/matter.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/p5.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/p5-matter/1.1.0/p5.matter.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/p5-tsparticles/1.1.0/p5.tsparticles.min.js"></script>
</head>
<body>
  <div id="tsparticles"></div>
  <script>
    const particlesContainer = document.querySelector('#tsparticles');

    const particlesInit = async () => {
      await tsparticles.load('tsparticles', particlesContainer, {
        preset: 'bigCircles',
        background: {
          color: '#000000',
          image: 'url(images/background.png)',
          position: '50% 50%'
        },
        particles: {
          number: {
            value: 80,
            density: {
              enable: true,
              value_area: 800
            }
          },
          color: {
            value: '#ffffff'
          },
          shape: {
            type: 'circle'
          },
          opacity: {
            value: 0.5,
            random: true,
            anim: {
              enable: true,
              speed: 0.5,
              opacity_min: 0.1
            }
          },
          size: {
            value: 50,
            random: true,
            anim: {
              enable: true,
              speed: 1,
              size_min: 0.1,
              sync: false
            }
          },
          line_linked: {
            enable: true,
            distance: 150,
            color: '#ffffff',
            opacity: 0.4,
            width: 1
          },
          move: {
            enable: true,
            speed: 1,
            direction: 'none',
            random: true,
            straight: false,
            out_mode: 'out'
          }
        },
        interactivity: {
          detect_on: 'canvas',
          events: {
            onhover: {
              enable: true,
              mode: 'repulse'
            },
            onclick: {
              enable: true,
              mode: 'push'
            },
            resize: true
          },
          modes: {
            grab: {
              distance: 400,
              line_linked: {
                opacity: 1
              }
            },
            bubble: {
              distance: 400,
              size: 40,
              duration: 2,
              opacity: 8,
              speed: 3
            },
            repulse: {
              distance: 200,
              duration: 0.4
            },
            push: {
              distance: 400,
              duration: 0.4
            },
            remove: {
              enabled: true,
              quantity: 1
            }
          }
        },
        retina_detect: true
      });
    };

    particlesInit();
  </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!

All versions