oneshotlm
Compare all models on this prompt →

Animated loader · claude-sonnet-5.5

Output generated Cost / run $0.0344 Runtime 19.8s

Prompt for this run

Using the pre-provided gsap.min.js (global gsap), create a looping animated loading sequence on a dark background: morphing rounded shapes and a staggered row of dots orchestrated on a GSAP timeline with smooth easing.

⛨ sandboxed Open in new tab ↗

TAKE IT TO CODE

A single self-contained HTML file — copy it and open in any browser, or reuse the prompt with your own pi-agent run.

RUN

modelclaude-sonnet-5.5
vendorAnthropic · Claude
harnesspi 0.87.1 · browser iteration
generated2026-10-05

METRICS

runtime19.8s
tokens in19k
tokens out1.6k
cached13k
cost / run$0.0344
Transcript · 10 messages
system

user

Using the pre-provided gsap.min.js (global gsap), create a looping animated loading sequence on a dark background: morphing rounded shapes and a staggered row of dots orchestrated on a GSAP timeline with smooth easing.

assistant
→ bash {"command":"cat > index.html <<'E'\n<!DOCTYPE html><html><head><meta charset=\"utf-8\"><title>Loader</title><style>\nhtml,body{margin:0;heig
toolResult

(no output)

assistant
→ browser {"action":"screenshot"}
toolResult

Frame 1, +0ms

[Browser image supplied to model]

{"console":["warning: An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing."],"dom":"LOADING","images":"attached"}

assistant

The animation is running, but the two shapes blend to near-white. I'll make them translucent so the colors stay visible.

→ bash {"command":"sed -i 's/#a{background:#ff4d8d}#b{background:#3ec9ff}/#a{background:rgba(255,77,141,.7)}#b{background:rgba(62,201,255,.7)}/' in
→ browser {"action":"reload"}
toolResult

(no output)

toolResult

Frame 1, +0ms

[Browser image supplied to model]

{"console":["warning: An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing."],"dom":"LOADING","images":"attached"}

assistant

I built the loader in `/tmp/job-nL5RYe/index.html`. It loads the local `gsap.min.js` and runs as one looping GSAP timeline on a dark background. - **Shapes:** two overlapping translucent shapes, pink and cyan. They morph between a circle, rounded squares and leaf-like corner shapes, and they rotate and scale as they go. The loop ends with an elastic snap back to a circle. - **Dots:** a row of seven dots. A staggered wave lifts them and shifts their color from violet to pink to cyan and back, then they fade and pulse in sequence. I only checked two screenshots, both of the first moment of the loop. The first showed the shapes blending to near-white, so I made them translucent. In the second, taken after that change, the overlap is a muted lilac rather than distinct pink and cyan. I didn't capture later frames, so the mid-loop morphs, the dot wave and the loop restart are untested. The console showed only a sandbox warning from the preview iframe.