Design Tool / Motion
GSAP Blob Background Generator
A visual design tool for animated blob backgrounds — live preview, per-blob motion controls, and one-click export to HTML or React. Built to turn a workflow I introduced at Splunk into a product anyone can use.
View on GitHubOverview
This project picks up where a workflow I introduced at Splunk left off. There, a UI designer described ambient blob backgrounds in plain English to a generative AI tool, got back running GSAP code, and tuned it into a spec for engineering. It worked — but it left one obvious friction point. Every adjustment still meant finding the right number in a file of generated code, editing it, and refreshing the page.
The editor: layers and per-blob controls beside a live preview. The handoff: export self-contained HTML or a React component, ready to paste.
The Blob Background Generator removes that step. It's a browser-based tool where every meaningful GSAP parameter — color, size, blur, position, movement style, speed, radius, easing, rotation, scale pulse, loop timing, random seed — is a control with a live preview beside it. Designers stack up to 20 blobs, tune each one independently, and watch the composition move in real time. When it looks right, Export Code produces a drop-in HTML snippet or React component for a developer.
I built it on my own time, after the Splunk work, as a way to answer a product question: if a designer shouldn't have to read code to spec motion, what's the right tool for them to use instead? It's scoped like a real product — a written PRD, personas, acceptance criteria and a phased roadmap — and built with Claude Code against a test suite that keeps fast iteration from turning into regressions.
Key product & technical decisions
Start from a PRD, not a prompt
Before any code, the tool was written up as a full product requirements document: problem statement, goals and explicit non-goals, three personas (UI designer, front-end developer, creative director), a parameter-by-parameter control spec, ten user stories with acceptance criteria, and a seven-phase build plan. The non-goals did as much work as the goals — no non-blob shapes, no general GSAP editor, no accounts or cloud storage in v1. That scope fence is what kept a tool with dozens of possible controls shippable in focused build sessions.
Real-time means designing around the animation engine
The PRD set a hard bar: slider changes hit the canvas in under 16ms, with no debounce, at a sustained 60fps. Meeting it meant treating each kind of change differently. Speed changes only adjust a running timeline's timeScale. Other motion changes kill and rebuild the timeline while preserving its progress, so the blob doesn't jump back to the start. Appearance changes like color and blur never touch GSAP at all — they're plain style updates. The designer gets instant feedback without the preview stuttering every time a slider moves.
Seeded randomness so the export matches the preview
Organic blob motion is random by nature, which creates a handoff problem: if the exported code rolls new random values, what ships isn't what the designer approved. Every blob uses a seeded pseudo-random generator, and that same generator is written into the exported code. The motion a designer tunes in the tool is the motion that runs on the page — reproducible, not "close enough."
Export is the product
The whole point is a clean handoff, so export got built early rather than saved for last. The tool generates a self-contained HTML snippet (GSAP from CDN, no build step, sizes in % so it stays responsive) and a React component wired up with useRef and useEffect. A developer can paste either into a blank page and it runs with no dependency on the tool — the same "code as spec" handoff from the Splunk workflow, now produced by a UI instead of a prompt.
Tests as a guardrail for AI-written code
Built with Claude Code, the project carries an 84-test suite covering the animation timeline builder, the seeded random generator, state hooks, controls, and the export generator. That suite is what makes it safe to keep iterating fast with an AI pair-programmer: when a change to position controls exposed a bug where moving a blob left its animation anchored to the old spot, the fix came with a clear regression path instead of a guess.
Product roadmap
Phases were sequenced by value, not by number: blob management and export were pulled ahead of the full control panel, because a tool that can't hand off code isn't useful no matter how many sliders it has.
Phase 1
CompleteFoundation
- Vite + React + GSAP scaffold
- Two-panel layout
- Live blob with core sliders
Phase 2
CompleteCore animation
- GSAP timeline per blob
- Float / Drift / Orbit / Static
- Rotation & scale pulse
Phase 4
CompleteBlob management
- Up to 20 blobs
- Layer panel
- Duplicate & delete
Phase 6
CompleteExport
- HTML snippet
- React component
- Copy to clipboard
Phase 3
In progressFull control panel
- Position & canvas color ✓
- Blend modes
- Global scene controls
Phase 5
PlannedPresets
- 12+ built-in styles
- Save to localStorage
- Preset gallery
Phase 7
PlannedPolish
- Keyboard shortcuts
- Onboarding tour
- Performance pass