Case study · 2025
Smoke Cursor Background
Canvas smoke drifting on black, leaning toward your cursor.
Highlights
- 150 radial gradient particles on a 2D canvas, blended additively into haze
- GSAP ScrollTrigger turns scroll progress into a faster drift
- Mouse position nudges every particle toward the side the cursor is on
This smoke background runs on a single canvas fixed behind the page, with no video and no image files. The canvas holds 150 soft circles, each painted with a radial gradient that fades from a faint white, pink or pale blue to transparent. They are drawn with the lighter blend mode, so wherever they overlap the colour builds up and starts to read as haze.
Every frame the circles drift a little and bounce off the edges of the screen. GSAP ScrollTrigger watches the scroll and raises a speed factor as you move down the page, so the smoke gets busier the further you go. Moving the mouse adds a small push toward the side of the screen the cursor is on, which is enough to make the whole field feel like it is reacting to you.
It is plain HTML, CSS and JavaScript in one file, with GSAP loaded from a CDN.


