pollen-pointer-trail

Created about 5 hours ago

attributes
additional_license_urlshttps://github.com/MengTo/Skills/blob/2f8cb46167bec49ee3c4a6ca37972fc065b6b47e/agent-skills/web-design/pollen-pointer-trail/demo/assets/THREE-LICENSE.txt
descriptionEmit a sparse, distance-spaced trail of airborne pollen from the pointer over a woodland scene, with depth drift, short lives and bounded particles.
import_scopesignals-cleared-supporting-files
licenseMIT
license_urlhttps://github.com/MengTo/Skills/blob/2f8cb46167bec49ee3c4a6ca37972fc065b6b47e/LICENSE
namepollen-pointer-trail
publisherMengTo
repository_urlhttps://github.com/MengTo/Skills
source_urlhttps://github.com/MengTo/Skills/blob/2f8cb46167bec49ee3c4a6ca37972fc065b6b47e/agent-skills/web-design/pollen-pointer-trail/SKILL.md
upstream_copyrightCopyright (c) 2026 Meng To, Copyright © 2010-2023 three.js authors
upstream_revision2f8cb46167bec49ee3c4a6ca37972fc065b6b47e

Pollen Pointer Trail

Separate the ambient motes from the pointer response. The ambient field can drift through the entire grove. The pointer emits a brief local disturbance. Convert client coordinates to the canvas rectangle, then either use CSS-pixel coordinates or unproject onto a shallow plane in front of the foliage.

Sample distance along each pointer segment. Carry the unused spacing into the next event so slow and fast devices leave similar densities. Start around one grain per 12–18 CSS pixels. Cap spawns per frame. Reset the previous point on pointerleave, re-entry, resize or a long gap so crossing the page never draws a bridge. Spread new grains a small amount around the path, with a little upward lift and weaker lateral drift.

Use a fixed pool with position, velocity, birth time, lifetime and size. Batch the marks in one points draw or transparent 2D canvas. Start at low opacity and fade to zero in about 0.5–1.2 seconds. Avoid allocating per pointer event. Pause the loop when the pool is empty and keep the overlay pointer-transparent.

Check rapid zigzags, a stationary pointer and leaving across a button. Disable decorative emission under reduced motion and allow touch to scroll the page normally.

Open the interactive study to inspect the technique.


Copyright (c) 2026 Meng To Copyright © 2010-2023 three.js authors

The license files are attached. MIT · MIT

The attached ZIP contains the pinned supporting files cleared for import. Applicable license notices are attached or included when cleared.

Like how this is organised?

Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.