An animated asset can be a single HTML file: CSS, SVG or Canvas, no dependencies. It is light, editable and opens anywhere.
1. Write the brief
Use the Prompt Lab to get a complete prompt: type, style, format, duration, requirements. The prompt already includes the original-artwork constraint.
2. Ask for one file
Ask the model to deliver a standalone asset.html. Rules that work:
- one file, no external resources
- colors and text in constants or CSS variables at the top
@media (prefers-reduced-motion: reduce)that stops animations- a seamless loop: the end must match the start
3. Iterate on concrete defects
Open the file in the browser and fix one thing at a time: “the loop jumps at 6s”, “the neon is hard to read on a light background”. Vague requests produce vague tweaks.
4. Export to video or GIF (optional)
Capture frames with a headless browser, advancing CSS animation time deterministically:
// Playwright: 180 frames at 60 fps = 3 seconds
for (let i = 0; i < 180; i++) {
await page.evaluate((t) => document.getAnimations().forEach((a) => { a.pause(); a.currentTime = t; }), (i * 1000) / 60);
await page.screenshot({ path: `f_${String(i).padStart(4, '0')}.png` });
}
Then with ffmpeg:
ffmpeg -framerate 60 -i f_%04d.png -c:v libx264 -pix_fmt yuv420p -crf 18 out.mp4
ffmpeg -i out.mp4 -vf "fps=30,scale=720:-1:flags=lanczos,split[a][b];[a]palettegen[p];[b][p]paletteuse" out.gif
Always check the result on your own asset: the procedure is general, not tested on every animation.
Before publishing
Use original artwork only. Do not include Rockstar logos, characters, fonts or audio. Check the official fan-content rules before monetizing. See also the ready assets.
Frequently asked questions
How do you create an animated GTA 6-style asset with Claude Code?
With a complete brief (type, style, format, duration), a single dependency-free HTML file, iterations on one defect at a time and MP4 or GIF export with ffmpeg.
Can I use GTA 6 artwork in my assets?
No: use original artwork only. No Rockstar logos, characters, fonts or audio.