v0.0.1

ParticleText

Text made of tiny particles that fly in and assemble on viewport entry, scatter away from the pointer, and spring back into place.

Particles

Customize

Particle color
#a78bfa

Props

PropTypeDefaultDescription
childrenstring—Text rendered as particles; use \n for line breaks
colorstringcurrentColorParticle color, inherits the text color by default; also overridable via --elyri-particle-color
particleSizenumber2Side length of each particle, in CSS pixels
gapnumber3Sampling gap in CSS pixels; smaller means denser particles
radiusnumber80Pointer repel radius in CSS pixels, 0 disables interaction
forcenumber1Repel force multiplier
assemblebooleantrueFly particles in from around the text the first time it enters the viewport
classNamestring—Extra class name

Dependencies

Canvas 2DIntersectionObserverResizeObserver