CSS Scroll-Driven Animations & Timeline Builder
Generate animation-timeline, view ranges, keyframes, and a progressive fallback note.
Examples
Reading-progress bar
buildScrollDrivenCss({ type: "progress-bar", axis: "block", rangeStart: 0, rangeEnd: 100 })animation-timeline: scroll(block); animation-range: 0% 100%; @keyframes scroll-progressThe block-axis scroll timeline drives scaleX from 0 to 1 across the full scroll range with a static fallback.
Scroll reveal
buildScrollDrivenCss({ type: "reveal", axis: "vertical", range: "entry", rangeStart: 0, rangeEnd: 50 })animation-timeline: view(vertical); animation-range: entry 0% cover 50%;The element fades and rises as it enters the viewport, reaching full opacity halfway through its cover range.
About this tool
CSS Scroll Driven Animations emits timeline-bound animation CSS with buildScrollDrivenCss(options): choose a recipe (progress-bar, reveal, parallax, stagger), an axis (block, inline, vertical, horizontal), and a range to receive keyframes, a timeline block, the computed animationRange, and a full stylesheet that wires them together with duration, easing, and fill mode.
Timelines and ranges follow the spec split: progress-bar binds animation-timeline to scroll(axis) with a plain numeric range ("0% 100%"), while reveal/parallax/stagger bind to view(axis) with named ranges ("entry 0% cover 50%"). Percentages clamp to 0–100, unknown types/axes/ranges fall back to safe defaults, and the stagger recipe adds an --index-based 80 ms per-item delay.
Every output ships progressive enhancement: a @supports not (animation-timeline: scroll()) block freezes the animated selector to its resting state, so browsers without scroll-driven animations keep content visible and static instead of stuck at opacity 0 or scaleX 0.
How to use this tool
Pick a recipe
Use progress-bar for scroll progress (scroll timeline, scaleX keyframes), reveal for entrances, parallax for drift, or stagger for indexed cascades.
Set axis and range
Choose the scroll axis, then a numeric 0–100 window for progress bars or a named entry/entry-crossing/exit/contain range with cover percentages for view animations.
Wire the timeline names
Keep the generated scroll-timeline-name and timeline-scope custom properties, or override them via timelineName/scope — unsafe characters sanitize to dashes automatically.
Use cases
Adding reading progress
Drop the progress-bar recipe's fixed bar into long articles without any scroll listeners or JavaScript.
Revealing content on scroll
Fade-and-rise sections with the reveal recipe's named entry range instead of IntersectionObserver code.
Layering parallax and stagger
Drift hero layers with parallax and cascade cards with stagger's --index delay, all compositor-friendly.
Common mistakes
Mistake:Expecting animation on browsers without timeline support.
Fix:The @supports fallback intentionally renders content static and visible — treat scroll-driven motion as enhancement, not the only reveal path.
Mistake:Passing out-of-range percentages like -20 or 140.
Fix:Range endpoints clamp to 0–100, so a -20→140 window silently becomes 0% 100% — normalize inputs if the clamp surprises you.
Frequently asked questions
What does this tool do?
It emits scroll-driven animation CSS for the progress-bar, reveal, parallax, or stagger recipe — spec-correct scroll() timelines with numeric ranges for progress bars, view() timelines with named entry/cover ranges for the rest, plus a @supports fallback that keeps content visible where timelines are unsupported.
When do I get scroll() versus view()?
progress-bar binds to scroll(axis) with a plain percentage window like 0% 100%, while reveal, parallax, and stagger bind to view(axis) with named ranges like entry 0% cover 50%. The recipe you pick decides the timeline function.
Is my animation configuration uploaded or stored?
No. Recipe selection, range computation, and stylesheet assembly run fully client-side — nothing you enter is sent anywhere.
Why does my animation look static in some browsers?
Browsers without animation-timeline support hit the @supports not fallback, which intentionally freezes the element at its resting state (opacity 1, no transform). Treat scroll-driven motion as progressive enhancement rather than the only reveal path.
Related guides
References & standards
Related tools
.env Secret Safety Linter
Validate .env syntax and spot likely leaked credentials or placeholder secrets.
.htaccess Generator
Build an Apache .htaccess — HTTPS redirects, rewrites, error pages, security headers, and basic auth
2D Fluid Dynamics & Particle Physics Sandbox
A physics playground with two engines sharing one canvas. The fluid mode runs a real Eulerian Navier-Stokes solver — semi-Lagrangian advection, explicit diffusion, Jacobi pressure projection and vorticity confinement — that you paint with dye and velocity using mouse or touch. The particle mode is a damped Verlet N-body engine with gravity wells, Coulomb attractors and repulsors, spring links, wall restitution and elastic circle collisions. Particle counts adapt to the device (100k target on WebGL2 desktop, 2k-5k on CPU fallback), and every configuration exports as runnable code: a Matter.js world, a PixiJS ticker setup, or a standalone vanilla Canvas engine.
AI Function Calling Schema Generator
Generate function calling JSON schemas from TypeScript interfaces
Algorithm Arena & Data Structure Visualizer
Interactive arena for algorithms and data structures: eight sorting algorithms racing on one seeded input, six pathfinding algorithms walking generated mazes, and BST, AVL, Red-Black, B-tree, heap and trie operations replayed step by step with rotations highlighted. Every run shows the Big-O table and the phase-highlighted reference implementation in four languages, and compared values can be played as pitch (sonification) through the shared audio engine. Everything runs client-side; inputs never leave the browser.
Ansible Playbook Generator
Build an Ansible playbook — hosts, vars, and tasks with modules — as YAML