MagneticFilings
Thousands of tiny iron filings scattered on paper that swing to align with a magnetic field around the cursor, tracing out the field lines — a dipole whose axis follows the cursor's motion draws the classic two-lobed swirl, and every sweep of the magnet sends a glowing wave of filings flipping and settling
Props
Prop
Details
colorAstringDefault:
#be1ef9Color of filings resting quietly, aligned and still
colorAstringDefault: #be1ef9Color of filings resting quietly, aligned and still
colorBstringDefault:
#6326ffColor filings flash toward as they swing and settle — a wave of it follows the moving magnet
colorBstringDefault: #6326ffColor filings flash toward as they swing and settle — a wave of it follows the moving magnet
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"Default:
oklabColor space for the rest→excited color ramp
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"Default: oklabColor space for the rest→excited color ramp
shape"arrow" | "streak" | "dot" | "square" | "glow"Default:
dotHow each filing is drawn — a slim streak or arrow reads as a compass needle, a box as a chunky filing, a dot or soft glow for a finer grain
shape"arrow" | "streak" | "dot" | "square" | "glow"Default: dotHow each filing is drawn — a slim streak or arrow reads as a compass needle, a box as a chunky filing, a dot or soft glow for a finer grain
countnumberDefault:
8000Number of iron filings
countnumberDefault: 8000Number of iron filings
sizenumberDefault:
1Size of each filing
sizenumberDefault: 1Size of each filing
restOrientation"random" | "horizontal" | "vertical"Default:
randomWhich way filings point where the field can't reach them — randomly, all horizontal, or all vertical
restOrientation"random" | "horizontal" | "vertical"Default: randomWhich way filings point where the field can't reach them — randomly, all horizontal, or all vertical
fieldType"dipole" | "radial"Default:
dipoleThe magnetic field the filings reveal — a dipole (bar-magnet lobes that follow the cursor's motion) or a radial monopole (spokes out from the cursor)
fieldType"dipole" | "radial"Default: dipoleThe magnetic field the filings reveal — a dipole (bar-magnet lobes that follow the cursor's motion) or a radial monopole (spokes out from the cursor)
strengthnumberDefault:
1.7How strongly the magnet grips the filings — higher snaps more of them into sharp alignment
strengthnumberDefault: 1.7How strongly the magnet grips the filings — higher snaps more of them into sharp alignment
reachnumberDefault:
0.6How far the magnet's influence spreads (in screen heights) — larger reveals more of the field at once
reachnumberDefault: 0.6How far the magnet's influence spreads (in screen heights) — larger reveals more of the field at once
responsenumberDefault:
0.5How briskly filings swing and settle — low is loose and floppy with a long wobble, high snaps into place quickly
responsenumberDefault: 0.5How briskly filings swing and settle — low is loose and floppy with a long wobble, high snaps into place quickly