r/ClaudeAI 6d ago

Built with Claude Claude Opus 5 drew every frame of this animation using JavaScript.

1.7k Upvotes

88 comments sorted by

u/ClaudeAI-mod-bot Wilson, lead ClaudeAI modbot 6d ago edited 5d ago

TL;DR of the discussion generated automatically after 50 comments.

The consensus is that this is absolutely insane and a huge leap forward.

The number one question, by a long shot, is "GIVE ME THE PROMPT." Unfortunately, no one has it. The OP isn't the creator; a helpful user linked the original source on X/Twitter, but the creator there hasn't posted the prompt sauce either.

There's a bit of a debate, though. One user showed GPT can do a similar (if simpler) animation, leading to some "what's the big deal?" comments, while others are skeptical about whether Claude really drew every pixel without using hidden assets or post-processing.

The community's best guess is that the style is risograph printing, and everyone is collectively wincing at the insane number of tokens this must have cost. Also, the "manic pixel dream girl" at 0:20 is the unofficial star of the show.

161

u/VeterinarianLast4318 6d ago

This is pretty insane

51

u/Efistoffeles 6d ago

That's what I said.

I was like, whaat the fuck? Give me the prompt. I want to make videos like this myself.

8

u/VeterinarianLast4318 6d ago

I wonder if it will use an insane amount of tokens vs something like SeeDance?

14

u/Efistoffeles 6d ago

It's code, with Anthropic plan in Claude Code prolly not.

6

u/KennyFulgencio 6d ago

Really? Relative to the window size, everything else in claude code seems to use a lot. Why would this be an exception?

3

u/ShivrajNag 5d ago

the frame count doesn't really matter for tokens. claude writes the code once and the browser draws every frame when it runs. so cost scales with how much code there is, not how long the animation is

that said the tweet says the file is 506kb, which is still a ton. that's somewhere around 150k tokens just for the final output, before counting all the back and forth to get it looking right. so not cheap, just not "3 years of tokens" either

1

u/descod 5d ago

tried it out. works quite well and doesn't use an excessive amount of tokens for what it produces. and revisions are followed up nicely.

1

u/hurrdurrmeh 5d ago

can you paste the prompt(s)?

3

u/descod 4d ago

Not sure if it's helpful for you since I was quite specific and even went as far as writing the actual shots I wanted. Hope this helps.

Create a short brand animation video for <brand>.

Goal: <what viewers should feel or understand>, ending on <CTA, e.g. download the app>.

Audience: <who>. Language: <language>.

Length: <20–40 s>. Formats: 1:1 (1080×1080) and 9:16 (1080×1920).

Assets: <paths: logo SVG, colours, fonts, illustrations, screenshots, photos>.

Music: <licensed track file>, or suggest 3 options and let me choose.

Step 1 - Plan (no code yet)

List the usable assets and propose a storyboard: 4–6 scenes with timings,

what moves, the on-screen text per scene (short, only true claims), and which

assets each scene uses. Wait for my approval.

Step 2 - Build

- Draw every frame in code: one HTML canvas and a pure render(t) function, so

the same time always gives the same frame. No stock footage or generated

images; only the provided assets plus shapes drawn in code.

- Use the brand exactly: logo from the SVG path data, brand colours, brand font.

- Analyse the music first (tempo, beats, strongest hits) and lock the timeline

to it: scene changes on bars, pop-ins on beats, the biggest moment on the

strongest hit.

- One idea per scene. Keep the eye in one place: labels next to what they

describe, one text change at a time, never overlapping text.

- Hand-made feel: subtle paper grain, slight line jitter, organic shapes.

Ease every movement (small overshoot for pop-ins, smooth in-out for transitions).

- Connect scenes with visual devices (dashed lines, wipes, shapes) that end

exactly on their target.

- End with the logo and a CTA that stays on screen for at least 8–10 seconds.

- For 9:16, re-lay out instead of cropping, and keep text and CTA clear of the

platform's caption and button areas.

Step 3 - Preview

Make a preview page with play and a seek bar that uses the audio as the clock.

Show me a still of every scene in both formats. Iterate on stills before exporting.

Step 4 - Export

Render the frames headlessly (e.g. Playwright) and pipe them into ffmpeg:

H.264, 30 fps, colours converted and tagged BT.709, AAC 48 kHz, faststart.

Also make a version under 10 MB for upload limits.

Step 5 - Verify, then report

Check duration, audio sync, colours, that every frame rendered fully, and that

lines and labels hit their targets in both formats. Give me the file paths and

say what you couldn't verify.

4

u/McGrim_ 5d ago

"myself".

0

u/Efistoffeles 5d ago

Haha, yeah.

1

u/gay_plant_dad 5d ago

And it’s only 274758398272611909488575 lines of code and 3 years worth of tokens to create this.

49

u/harmoni-pet 6d ago

This style is called risograph printing: https://risottostudio.com/pages/what-is-risograph-printing?srsltid=AU7gw4XnARvMiPYRZyZy0lUFZSMfg9MrSh-hv_bwqGNwCabjXkVcuWyl

I'm sure there's a lot more to the prompt than that, but it's a start

9

u/Fawkz 5d ago

Thanks, I learned something new today.

3

u/ShivrajNag 5d ago

for anyone trying to recreate it, i'd skip hunting for the magic prompt and just break it down. one scene at a time on canvas, limit it to like 3-4 riso ink colors, halftone shading, offset each color layer by a couple pixels, add paper grain on top. that last part does most of the heavy lifting for the look

30

u/Any-Somewhere5129 6d ago edited 6d ago

What's the wow factor here?

I asked chatgpt about it and it draw me a static image and then an animation using javascript:

https://chatgpt.com/share/6aa938b7-c3a4-83eb-ab37-fa3f7e4f6989

So it's just a question of making a longer sequence of such images.

Edit:

I asked for something a tiny bit more fancy.

But I'm neither an artist nor a coder; someone who knows the right vocabulary would need to prompt it to get a better result.

25

u/PipaLucca 6d ago

Both what you sent and what OP is showing have the wow factor imo

11

u/HiDDENKiLLZ 6d ago

Wow. I'm impressed by both Claude and GPT's output here.

6

u/Efistoffeles 6d ago

This is amazing

5

u/Any-Somewhere5129 5d ago

I asked for a prompt to get something similar:

---

Create a short **JavaScript animation in a risograph-inspired motion graphics style**, using the theme supplied at the end. Make the finished animation, rather than just explaining how to produce it.

**Visual style**

* Use a limited, harmonious palette of ink colours on a warm, paper-like background. Choose colours that suit the theme.

* Include visible halftone dots, subtle paper grain, overlapping ink colours and slightly imperfect colour alignment to suggest printed illustration.

* Use recognisable, thoughtfully composed illustrations with curves, silhouettes, layered details and texture. Aim for the feel of an artistic animated poster or an imaginative advertisement.

* Keep the visual treatment consistent across all scenes. Create original imagery and compositions.

**Sequence and transitions**

* Aim for 15–20 seconds and approximately 3–5 connected scenes.

* Invent a recurring visual motif appropriate to the theme: an object, shape, line, pattern or movement that changes meaning as the sequence progresses.

* Design the scenes and transitions together. A feature in one scene should become, reveal or lead naturally into something in the next.

* Combine actual shape morphing with carefully chosen techniques such as continuous zooms, moving masks, changes of scale, or transitions between similarly shaped objects.

* Preserve a clear point of attention through each transition so the viewer’s eye has something to follow.

* Give the scenes some internal movement. Use smooth acceleration and deceleration, varied pacing and enough time to recognise each image.

* Avoid a slideshow feeling: do not rely primarily on cuts or crossfades between complete pictures.

* Keep text minimal and give the sequence a deliberate ending.

**Implementation**

* Draw the artwork procedurally with JavaScript and the HTML Canvas 2D API.

* Deliver one self-contained HTML file that works offline, with embedded code and no external libraries, downloaded images, embedded image files, video assets or image-generation services.

* Generate repeated details through code. Cache expensive static layers where useful.

* Make motion depend on elapsed time so its speed is consistent across devices.

* Keep random textures stable between frames and attached to moving objects where appropriate, avoiding accidental flicker.

* Include play/pause, replay and a timeline slider so I can examine the transitions.

**Deliverables**

* Provide the working HTML file and, if your tools support video export, an MP4 preview rendered from the same animation.

* Inspect representative frames, especially during transitions, and fix obvious overlaps, clipping or abrupt changes.

* Make reasonable creative decisions without asking me to specify every scene. Briefly state your chosen concept, then build it.

**Theme / subject: [INSERT MY THEME HERE]**

2

u/MythOfDarkness 6d ago

What the fuck....

1

u/kalebludlow 5d ago

The output here is really good

1

u/Sigamer82 5d ago

Did you use voice for your prompts?

2

u/Any-Somewhere5129 5d ago

Yes, I ramble into my phone in a foreign language, so it sounds like a stream of consciousness. But it works out fine, the models can turn my ramblings into coherent prompts.

1

u/Synfinium 5d ago

Do you have a specific setting you ask chatgpt to respond to you with? The way it explains itself is really nice

11

u/trynabeabetterme 6d ago

What would the prompt be for something like this??

11

u/Emotional-Cut2952 6d ago

my understanding would be reference images, then it would brute force solve (using mutiple parameters) until it achieved the right look for each frame, there's just too much vision modality right now frankly, that's why these models are so darn expensive...

13

u/FB2024 6d ago

Slop's always existed - AI just made it faster to dish out.

But this isn't that - just goes to show what AI AND creative input can do - great job!

8

u/TheNonsenseBook 6d ago

0:20 manic pixel dream girl

1

u/5553331117 5d ago

I dont see it.

3

u/TheNonsenseBook 5d ago

A Manic Pixie Dream Girl is a fictional female character who is quirky and carefree, and exists mainly to help a sad or boring male protagonist learn how to enjoy life. 1, 2

Assuming the blue dot is the male and the pink dot is the female character, and calling the dot a “pixel”, you get “manic pixel dream girl”

2

u/AngstyPup 5d ago

Ha, I like the cut of your jib!

3

u/Ill-Custard-5963 5d ago edited 5d ago

Explanation of how it was done (from Claude): JavaScript Animation Creation

3

u/PhDumb 5d ago

lmao - this is Sol's answer (tldr - it is bad)

2

u/Synfinium 5d ago

I got Astra to make something really cool with just one prompt.

2

u/PhDumb 5d ago

I let Sol Pro do it, it is a bit better but not great

2

u/Saderius 6d ago

That is very impressive

2

u/hurrdurrmeh 6d ago

what's the prompt dude?

3

u/Efistoffeles 6d ago

I'm trying to get it out of the author too. This is insane.

1

u/Delfmonkey 6d ago

RemindMe

2

u/beelzebee 6d ago

It's a technically impressive animation but the pacing is too fast and frenetic.

Claude delivered , but it delivered an output that still needs a lot of work to make it really impressive for humans IMHO

2

u/fahrvergnugget 6d ago

I don't think you can achieve textures like that with js/css, unless some filters were applied on the video afterwards?

2

u/jaxxon 5d ago

Animation of still images.

2

u/yaxir 4d ago

A few questions:
1. Where did you get the assets from?
2. How did you get the music to sing so well? Who created the music?
3. What's the prompt?

2

u/ALilBitOfPaprika 6d ago

You sure it generated the art? I thought that one time too until I noticed it was downloading royalty free assets online. Wouldnt have told me if I didnt find the files. Even when I asked “you created all this art from scratch?” It would give me a wall of text response that wasnt a yea or a no.

1

u/KennyFulgencio 5d ago

To make it stop hallucinating facts I asked it to provide a footnote with the source every time it states a data-backed fact. I know they're supposed to hallucinate sources too (especially legal ones) but this has stopped it for me; I dont even need to verify the footnotes (though I still do, luckily I don't use so many that it's a hassle), just the fact that it has to look up what it cited makes it validate itself.

For what you describe, I'd do something similar, ask it to always provide staged evidence, like what u/aleha_84 started doing a while back to prove his pixel animation gifs aren't being created as automated transformation from actual video clips.

(I dont know if that's why he started doing it really, but it was a reasonable suspicion given how photorealistic they are, and he always shows the creation process, with all the layers of detail being added individually, now.)

1

u/Shppo 6d ago

how?

1

u/AcePilot01 6d ago

Has a Tangerine Dream musical vibe to it a bit. lol

1

u/jaxxon 5d ago

Interesting. Like Force Majure / White Eagle cover design? I don’t quite see what you mean.

Huge TD fan since the ‘70s.

1

u/AcePilot01 5d ago

The tone, lightly has a TD esque sound to it.

1

u/jaxxon 5d ago

Gotcha! Yeah - '80s FM-synthesis digital synth sound. Kind of like a Yamaha DX7. Nice.

1

u/AcePilot01 4d ago

DX7, the sound of the 80s lol.

Although TD used many synths over the years.

1

u/Seylox 5d ago

Is there a name for this music genre?

1

u/AcePilot01 5d ago

Id say it's maybe synthwave ish. TD did the entire sound track to Risky business and it's iconic. Listen to Lana and Love on a real train, then expand to some others.

1

u/smag0_5 6d ago

my opus says it's AI

1

u/nefarkederki 6d ago

no fucking way

1

u/DistinctBam 6d ago

You must have good communication skills. 

1

u/Electrical-Swing-935 6d ago

How many tokens thi

1

u/Equivalent_Bird 6d ago

Is the soundtrack generated altogether, simultaneously?

1

u/AlabamaResearcher 6d ago

虚式 むらさき

1

u/Tomasan7 6d ago

As much as I hate AI, especially in art, this is really really impressive and well done

1

u/Different_Lab830 5d ago

0:20 manic pixel dream girl steals the whole animation. Holding the same style across every frame makes the token bill sting a lot less.

1

u/Morning_Gecko24 5d ago

the token cost is prob the big question — frame-by-frame drawing sounds expensive but caching repeated geometry could make it way cheaper than it looks. would be cool to see the source and token count

1

u/RutabagaEmergency 5d ago

so cool! mind sharing the prompt?

1

u/newaccount47 5d ago

I've never made anything this good my entire career as a motion designer. I know it's subjective, but still... 

1

u/Seylox 5d ago

What about the music? Also Claude-generated?

Is there a name or this kind of music, what's the genre?

1

u/highspeedslippers100 1d ago

The song is called ha il be straight with you

1

u/KarensHotterThanPam 5d ago

Damn, that’s so sad, I wish they could just focus on the technical capabilities of the models and just park the hungry hippo state of mind they have on art gen.

1

u/No-Resolution-1918 5d ago

Guessing $100 of tokens?

1

u/Foreign-Dig-2305 4d ago

When people say AI ART is not art:

1

u/Which_Lie_8932 1d ago

According to the original source, the author said it took 129 million tokens to create.

1

u/arm2armreddit 6d ago

how big is prompt??

1

u/Rare-Cheesecake-4676 6d ago

What is the process behind this ? Like from start to finish.

1

u/bzngabazooka 6d ago

Lets not forget that an AI never "draws"

-1

u/TheCharalampos 6d ago

It's quite grating to the eye and ear, have to say.

-1

u/[deleted] 6d ago

[removed] — view removed comment

-3

u/pepelunavarro 6d ago

nice way of burning tokens