Crafting interactive web experiences

Cursor Trail is a pointer interaction component that generates a dynamic trail of images following the user’s cursor or touch movement. As the pointer moves across the screen, it samples movement based on distance thresholds and renders images from a prebuilt pooled DOM layer, animating them with GSAP for scale-in and timed scale-out transitions. Each instance is positioned relative to the container bounds and assigned layered z-index values to create depth and visual stacking.