BackgroundsNew

Particles

A background of twinkling dots that gently follow the cursor. Drawn on canvas, no libraries needed.

Customize

color

Based on Particles (MIT license) · Terms of use

More in Pro

View all

Props

9 properties
PropertyTypeDefaultDescription
quantitynumber100Number of dots on the canvas.
sizenumber0.4Base dot size.
colorstring"#ffffff"Dot color as HEX.
staticitynumber50How little dots follow the cursor. Higher is calmer.
easenumber50Smoothness of the cursor follow.
vxnumber0Constant horizontal drift.
vynumber0Constant vertical drift.
refreshbooleanfalseToggling it re-creates the dots.
classNamestring—Classes for the canvas wrapper.

Dependencies

2 required packages

npm install clsx tailwind-merge

Related components

View all