176 web animation techniques, each a live demo with plain settings and a ready-made prompt for your AI assistant. No dependencies, no build step.
HTML ai-promptsanimationcss-animationsfrontendgithub-pagesjavascriptmicrointeractionsmotion-designno-dependenciesreferencescroll-animationui-animationweb-animationweb-developmentwebgl
docs: the tsParticles links in Flow Field, Particle Constellation and Synthwave Grid point to the repository's new home, github.com/tsparticles/tsparticles
matin2fe9be0772aa
diff --git a/animations/07-ambient-background/flow-field/README.md b/animations/07-ambient-background/flow-field/README.mdindex 10f6626b..8571ed44 100644--- a/animations/07-ambient-background/flow-field/README.md+++ b/animations/07-ambient-background/flow-field/README.md@@ -55,7 +55,7 @@ The step grows with the time since the last drawn frame, and so does the fade, i- **Mobile cap**: particle count is limited to 500 on phone-sized screens (up to 600px wide, or up to 500px tall for a phone held sideways). Each particle is a stroked line segment, so fill rate — not math — is the bottleneck on phones.- **Deterministic noise**: the `hash` uses `sin(x*127.1 + y*311.7)*43758.5453`, a classic GLSL trick. It is not cryptographic and not true Perlin noise, but it is cheap, dependency-free, and smooth enough for a field.- **Reduced motion**: the demo starts paused, showing about 40 frames drawn at once as a still, settled picture, until the visitor presses Play. The same 40 frames are drawn whenever the page opens, so the stage never starts empty.-- **Library equivalents**: production flow fields usually run on the GPU — [three.js](https://threejs.org) with a fragment/compute shader, or curl-noise in a particle system. [tsParticles](https://github.com/matteobruni/tsparticles) does not do true flow fields, but its path plugins approximate directed motion.+- **Library equivalents**: production flow fields usually run on the GPU — [three.js](https://threejs.org) with a fragment/compute shader, or curl-noise in a particle system. [tsParticles](https://github.com/tsparticles/tsparticles) does not do true flow fields, but its path plugins approximate directed motion.## See also- [Particle Constellation](../particle-constellation/) — particles that link up instead of flowingdiff --git a/animations/07-ambient-background/particle-constellation/README.md b/animations/07-ambient-background/particle-constellation/README.mdindex 906d54e9..5b05211f 100644--- a/animations/07-ambient-background/particle-constellation/README.md+++ b/animations/07-ambient-background/particle-constellation/README.md@@ -60,7 +60,7 @@ node.vx += (node.cvx - node.vx) * 0.01 * k; // ease back to the c- **Velocity easing**: for every 60th of a second, a node's velocity eases 1% of the way back to the velocity it started with. That keeps pulls from the pointer from building into runaway speeds, and unlike multiplying the velocity by 0.99 every 60th of a second, which slows every node to a stop within seconds, it never lets the drift die out. Scaling the 1% by `k` is a linear shortcut that differs from the exact `1 - 0.99^k` by about 1% at most, on a 50 ms frame.- **Reduced motion**: the demo starts paused, showing one still frame, until the visitor presses Play. In production, show these visitors the still frame.- **Retina**: for crisp lines on high-DPI screens, scale the canvas backing store by `devicePixelRatio` and the context by the same factor. Omitted here to keep fill rate low on mobile.-- **Library equivalents**: [tsParticles](https://github.com/matteobruni/tsparticles) ships this exact effect (`links` mode) with presets; [three.js](https://threejs.org) can push the same idea to tens of thousands of GPU points with `LineSegments`.+- **Library equivalents**: [tsParticles](https://github.com/tsparticles/tsparticles) ships this exact effect (`links` mode) with presets; [three.js](https://threejs.org) can push the same idea to tens of thousands of GPU points with `LineSegments`.## See also- [Starfield / Space Particles](../starfield/) — particles that show depth instead of linksdiff --git a/animations/07-ambient-background/synthwave-grid/README.md b/animations/07-ambient-background/synthwave-grid/README.mdindex ba543125..f429eb13 100644--- a/animations/07-ambient-background/synthwave-grid/README.md+++ b/animations/07-ambient-background/synthwave-grid/README.md@@ -46,7 +46,7 @@ The glow is a canvas `shadowBlur` set to the grid color; the sun is a clipped se- **The modulo seam**: fading lines in as `p` approaches 0 hides the pop where a new line spawns at the horizon. Without the alpha ramp you would see it flicker into existence.- **Reduced motion**: the demo starts paused, showing the grid, sky and sun still, until the visitor presses Play. In production, show these visitors the still scene.- **CSS alternative**: this can also be built with a `transform: perspective()` plane and a repeating linear-gradient scrolled toward the viewer. Scrolling it with `background-position` repaints every frame; sliding an oversized plane one grid square with `transform: translateY()` and jumping back lets the compositor run it. The canvas version wins on control over per-line fade and glow.-- **Library equivalents**: for a true 3D floor with camera moves and bloom, use [three.js](https://threejs.org) — a `PlaneGeometry` with a wireframe material and an `UnrealBloomPass` gives the authentic glow. [tsParticles](https://github.com/matteobruni/tsparticles) is not suited to structured grids.+- **Library equivalents**: for a true 3D floor with camera moves and bloom, use [three.js](https://threejs.org) — a `PlaneGeometry` with a wireframe material and an `UnrealBloomPass` gives the authentic glow. [tsParticles](https://github.com/tsparticles/tsparticles) is not suited to structured grids.## See also- [Starfield / Space Particles](../starfield/) — another way of flying forward through space