Get started with tsparticles-preset-links CDN

MIT licensed

Tsparticles-preset-links: A library offering particle presets for TSParticles.

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-links CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with tsparticles-preset-links CDN - cdnhub.io</title>
  <style>
    #tsparticles {
      height: 100vh;
      width: 100%;
    }
  </style>
</head>
<body>
  <div id="tsparticles"></div>
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/particles.min.js"></script>
  <script src="https://cdn.cdnhub.io/tsparticles-preset-links/2.12.0/tsparticles.preset.links.min.js"></script>
  <script>
    particlesJS.load('tsparticles', 'assets/particles.json', (particles) => {
      particles.addPreset('links', {
        presetName: 'links',
        links: [
          {
            link: 'https://www.google.com',
            color: '#FFF',
            size: 1,
            lineLinked: {
              opacity: 0.4,
              width: 1,
              color: '#FFF'
            },
            label: {
              text: 'Google',
              style: {
                fontSize: '12px',
                fontWeight: 'bold'
              }
            }
          },
          {
            link: 'https://www.w3schools.com',
            color: '#F5DEB3',
            size: 1,
            lineLinked: {
              opacity: 0.4,
              width: 1,
              color: '#F5DEB3'
            },
            label: {
              text: 'W3Schools',
              style: {
                fontSize: '12px',
                fontWeight: 'bold'
              }
            }
          }
        ]
      });
    });
  </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!

All versions