Skip to content

Plugin Option: Interactions

interactions provides interaction mode packages that extend the interactivity system.

External interaction modes

PackageModeDescription
interaction-external-attractattractAttracts particles toward cursor
interaction-external-bouncebounceBounces particles away
interaction-external-bubblebubbleEnlarges particles near cursor
interaction-external-cannoncannonFires particles from cursor
interaction-external-connectconnectLines between nearby particles
interaction-external-destroydestroyDestroys particles under cursor
interaction-external-dragdragDrags particles with cursor
interaction-external-grabgrabLine from cursor to particles
interaction-external-parallaxparallaxParallax movement
interaction-external-particleparticleSpawns a particle on click
interaction-external-pausepausePauses animation
interaction-external-poppopRemoves particles near cursor
interaction-external-pushpushAdds particles on click
interaction-external-removeremoveRemoves particles on click
interaction-external-repulserepulsePushes particles away
interaction-external-slowslowSlows particles near cursor
interaction-external-trailtrailCursor trail effect

Particle interactions

PackageDescription
interaction-particles-attractParticles attract each other
interaction-particles-collisionsParticles collide
interaction-particles-linksLines between connected particles
interaction-particles-repulseParticles repel each other

Notes

  • Modes are configured under interactivity.modes and activated through interactivity.events.

Source reference