Get started with tsparticles-shape-multiline-text CDN

MIT licensed

TSParticles: Text addon for Three.js, customizable shapes, animations.

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-shape-multiline-text CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with tsparticles-shape-multiline-text 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]/worksans.min.css"></script>
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/tsparticles.min.js"></script>
  <script src="https://cdn.cdnhub.io/tsparticles-shape-multiline-text/2.12.0/tsparticles.shape.multiline-text.min.js"></script>

  <script>
    const particlesInit = async () => {
      await tsparticles.load("tsparticles", {
        container: "tsparticles",
        shape: {
          options: {
            type: "multiline-text",
            text: ["Hello, World!", "Welcome to the TSParticles world!"],
            fontSize: 30,
            fontFamily: "Work Sans, sans-serif",
            lineHeight: 1.5,
            lineSpacing: 0.1,
            color: "#ffffff",
            opacity: 0.8,
            textAlign: "center",
            textRotation: [0, 35],
            textRotationSpeed: 0.05,
            textRotationRandom: true,
            textBounce: true,
            textBounceDistance: 10,
            textBounceSpeed: 1,
            textBounceRandom: true,
            textKerning: true,
            textStyle: {
              strokeWidth: 1,
              strokeColor: "#000000",
              fill: "#ffffff",
              fillGradient: false,
              strokeOpacity: 0.8,
              lineWidth: 1,
              lineOpacity: 0.8,
              lineGradient: false,
              lineColor: "#000000",
              lineGradientWidth: 0,
              lineGradientOpacity: 0.8,
              shadow: {
                enabled: true,
                color: "#000000",
                blur: 5,
                distance: 2,
                opacity: 0.5
              }
            }
          }
        },
        interactivity: {
          events: {
            onClick: {
              enable: true,
              mode: "repulse"
            },
            onHover: {
              enable: true,
              mode: "repulse"
            },
            resize: true
          },
          modes: {
            grab: {
              distance: 400,
              lineLinked: {
                opacity: 1
              }
            },
            bubble: {
              distance: 400,
              size: 40,
              duration: 2,
              opacity: 0.8,
              speed: 3
            },
            repulse: {
              distance: 200,
              duration: 0.4
            },
            push: {
              distance: 400,
              duration: 0.4
            },
            remove: {
              enabled: true,
              quantity: 1
            }
          }
        },
        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: 1,
              opacity_min: 0.1,
              sync: false
            }
          },
          size: {
            value: 5,
            random: true,
            anim: {
              enable: true,
              speed: 2,
              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"
          }
        },
        detectRetina: true
      });
    };

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

All versions