Pixel Trail

Interactive pixel trail effect using Three.js and React Three Fiber

Configuring your account...

Please wait while we prepare everything for you

Usage

import PixelTrail from './PixelTrail';

<div style={{ height: '500px', position: 'relative', overflow: 'hidden'}}>
  <PixelTrail
    gridSize={50}
    trailSize={0.1}
    maxAge={250}
    interpolate={5}
    gooeyFilter={{ id: "custom-goo-filter", strength: 2 }}
  />
</div>

Props

PropTypeDefaultDescription
gridSizenumber40Size of the pixel grid
trailSizenumber0.1Size of the trail effect
maxAgenumber250Maximum age of trail particles
interpolatenumber5Interpolation factor
colorstring'#000000' (light mode) / '#ffffff' (dark mode)Color of the pixels
gooeyFilterobjectundefinedGooey filter configuration