Get started with tsparticles-demo-configs CDN

MIT licensed

TSParticles-demo-configs is a collection of example configurations for the TSParticles library in Three.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-demo-configs CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with tsparticles-demo-configs CDN - cdnhub.io</title>
  <script src="https://cdn.jsdelivr.net/npm/worksans@4.2.0/worksans.css"></script>
  <link rel="stylesheet" href="styles.css">
  <script src="https://cdn.jsdelivr.net/npm/particles.js@2.12.0/particles.min.js"></script>
  <script src="https://cdn.cdnhub.io/tsparticles-demo-configs/2.12.0/tsparticles.configs.min.js"></script>
</head>
<body>
  <div id="tsparticles"></div>
  <script>
    const particlesConfig = {
      fpsLimit: 60,
      interactivity: {
        detectsOn: "canvas",
        modes: {
          grab: {
            distance: 400,
            lineLinked: {
              opacity: 0.5,
              width: 1
            }
          },
          repulse: {
            distance: 200,
            duration: 0.4
          },
          push: {
            quantity: 4
          },
          remove: {
            quantity: 2
          }
        }
      },
      particles: {
        number: {
          value: 80,
          density: {
            enable: true,
            value_area: 800.0
          }
        },
        color: {
          value: "#ffffff"
        },
        shape: {
          type: "circle"
        },
        opacity: {
          value: 0.5,
          random: true,
          anim: {
            enable: true,
            speed: 1,
            opacity_min: 0.1,
            sync: false
          }
        },
        size: {
          value: 5,
          random: true,
          anim: {
            enable: true,
            speed: 4,
            size_min: 0.1,
            sync: false
          }
        },
        lineLinked: {
          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_modes: {
        modes: {
          grab: {
            distance: 400,
            lineLinked: {
              opacity: 0.5,
              width: 1
            }
          },
          repulse: {
            distance: 200,
            duration: 0.4
          },
          push: {
            quantity: 4
          },
          remove: {
            quantity: 2
          }
        }
      },
      retina_detect: true
    };

    const container = document.getElementById("tsparticles");
    const particleInstance = new TSParticles.Default(container, particlesConfig);
  </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!

All versions