Criador de Animações JavaScript
Cada quadro desenhado em código.
Você só precisa descrever.
Um agente no Claude Opus 5.5 escreve o JavaScript que renderiza cada quadro
e compõe a trilha sonora em código. Sem keyframes, sem timeline, sem terminal.
O que é animação JavaScript?
Um vídeo escrito como código.
Renderizado do zero a cada quadro.
O modo Animation do iArt.ai transforma uma descrição de uma frase em uma animação JavaScript: um vídeo curto em que cada quadro é renderizado por código escrito por um agente com Claude Opus 5.5. A tipografia é composta como texto real, formas e traçados são desenhados em SVG, e uma camada de canvas pinta tudo o que é desenhado à mão, partículas ou texturas; cada quadro é uma função do tempo, então o vídeo reproduz, avança e exporta do mesmo jeito. A música e os efeitos sonoros são sintetizados em código com a Web Audio API.
iArt.ai leva esse método para uma aba do navegador. O modo Animation é um agente no Claude Opus 5.5: você descreve o vídeo, ele planeja as batidas e os planos, escreve o código da animação e a trilha, confere os próprios quadros e reproduz o resultado no seu navegador. Não existe estilo padrão. O visual vem do tema e das suas palavras, então um explicativo sobre pagamentos e uma historinha de ninar para uma criança de dois anos não ficam nada parecidos.
Por que se espalhou agora: desenhar um vídeo inteiro em código depende do raciocínio espacial de um modelo, do seu gosto e da sua capacidade de escrever código longo e cuidadoso, além de conseguir olhar os próprios quadros e corrigi-los. Com o Claude Opus 5.5, os vídeos desenhados em código ficaram bons o bastante para as pessoas começarem a compartilhá-los, e "cada quadro em JavaScript" virou um gênero próprio.
Para a definição completa, veja o que é animação JavaScript. Para fazer você mesmo, passo a passo, leia como fazer uma animação com o Claude Opus 5.5.
O Claude Motion não está no seu plano? Veja quatro formas de fazer o mesmo tipo de animação sem ele.
Vitrine
Vídeos desenhados inteiramente em código.
Cada vídeo foi feito no modo Animation do iArt a partir da primeira frase do prompt abaixo dele, com cada quadro e cada nota escritos em código. Uma frase já rende um bom vídeo. O resto de cada prompt é o brief que escrevemos a partir do vídeo: os planos, o visual e o som. Testar envia o prompt inteiro, então você recebe um vídeo próximo deste, não uma cópia.
A 40-second film in two acts about how a seed becomes a tree: act one underground (the seed cracks, roots reach down), act two above ground (the shoot breaks through, seasons pass, a tree). Same character style in both acts, one continuous score.
IDEA: One little acorn with a face is the hero throughout, seen in a fixed side-on cross-section with soil below, sky above. It wakes, roots, sprouts, becomes an oak, lives through the seasons, and ends by dropping a new acorn, closing the loop.
0–4.5s: brown soil layers under rain; a tiny acorn sleeps underground above a pebble. A small grey badge appears top left: "Act I · Below". Drops seep down toward it.
4.5–9s: close-up: three drops land on its cap, its eyes pop open with a smile, the shell cracks and a pale first root pushes downward.
9–19.5s: wide again. The root drives down, curves around the pebble and branches into side roots. A green shoot pushes up through the soil, pausing just below the surface.
19.5–25s: the shoot breaks through. Badge changes to "Act II · Above". Two rounded first leaves unfold and spread; the seedling smiles up at the sky.
25–30s: the stem thickens into a trunk, the acorn's face still at its base. Branches grow and burst into round green leaf clusters with small pink blossom dots; a warm sun rises upper right.
30–33s: autumn. The sky warms; the canopy turns golden orange and leaves drift down to the ground.
33–36s: winter. Bare branches, snow falling, a white layer building on the soil. The face sleeps calmly.
36–40s: spring. The snow melts, green canopies pop back with blossoms, an acorn ripens on a branch, falls and lands on the soil with two small bounces.
LOOK: soil in deep chocolate #4A3322 and umber #5A3D28 with tan flecks #9C8471; sky parchment cream #EBE5D8; acorn golden ochre #D89849 with chestnut cap #8C5A28; stem green #88A878; foliage sage #94B097 and olive #5F8265, autumn orange #C8873E, blossom coral #E28A7A; sun amber #E2A35B. Flat shapes with light paper grain, simple line roots and branches, round canopies. Badge: small grey #7E858C rounded box, white text.
MOTION: calm, readable, with pauses between each stage of growth. Springy squash and stretch on the crack, leaf pops and landing; smooth easing on root and branch growth. Seasons change in place with colour shifts, falling leaves and snow.
SOUND: one unbroken, unhurried fingerstyle acoustic guitar score, thinning in winter, lifting for spring. Drip pings underground, a crisp shell crack, soft pops on eye-open and when the shoot breaks through, birdsong above ground, woody rustles, an autumn breeze, quiet winter wind, a spring chime, and a hollow thud as the new acorn lands. No narration.
Ver prompt completoVer menos
How do noise-cancelling headphones actually cancel noise? Short vertical explainer for TikTok, ~20s.
IDEA: One cutaway earcup on a listener's head is the whole diagram. Red noise wave in, mic hears it, chip flips it teal, speaker plays it, red plus teal add to a flat line. A bottom meter drops LOUD, MUFFLED, QUIET.
0–2.4s: an annoyed listener faces a fan-like engine labelled "ENGINE HUM". A red sine wave travels into his ear; the bottom meter "NOISE AT YOUR EAR" fills red to "LOUD". Question card drops in at the top: "How do headphones erase noise?"
2.4–3.8s: over-ear headphones slide down onto his head and open into a cutaway: outer mic, chip, inner speaker. The cushion damps the wave; meter falls to "MUFFLED".
3.8–7.6s: punch in on the earcup. Card: "STEP 1 / A mic outside hears the noise". A pulsing ring marks the mic; a screen on the chip traces the red wave.
7.6–11.3s: card: "STEP 2 / A chip flips it upside down / every peak becomes a dip". The wave on the chip screen flips vertically and turns teal.
11.3–12.6s: card: "STEP 3 / The speaker plays the flipped wave". The speaker sends the teal wave into the ear alongside the red one. Equation: "NOISE" + "FLIPPED" = "YOU HEAR".
12.6–15.2s: card: "PEAK + DIP / They cancel out / the hum mostly disappears". Red and teal overlap and flatten into one grey line; meter shrinks to "QUIET" in green.
15.2–18.8s: slight pull back. Card: "THE CATCH / Best on steady hums like engines & fans / sudden sounds get through more".
18.8–22s: reframe on the now smiling listener. Four lines stamp on one by one: "Hear it." "Flip it." "Play it." "Quiet." Hold.
LOOK: warm off-white paper #F1EFE8 with fine grain. Charcoal #22252A headphones and outlines, warm grey #7F7C77 clothes and parts, coral red #D84337 for the noise wave and LOUD, teal #26B5A1 for the flipped wave, forest green #2D6A4F for QUIET. Minimal flat infographic: cutaway diagram, pill badges, thin line waves. Bold sans headlines, small tracked caps labels, text kept in the upper and lower thirds.
MOTION: clear cause-and-effect pace; each card holds one to two seconds to read, then swaps with a quick slide or dissolve. Props move fast with a snappy ease-out; waves scroll smoothly and continuously.
SOUND: warm fingerstyle acoustic guitar with soft piano and a light beat, around 90–100 BPM, under a steady low engine drone at the start. A click and muffled filter sweep as the headphones seal, blips on the mic, a rising synth whoosh on the flip, then the drone cuts out abruptly at the cancel. Soft woodblock pops on each final line, chords resolving. No narration.
Ver prompt completoVer menos
Why is the sky blue? A 20-second explainer in the style of a 1950s science textbook.
IDEA: One illustrated textbook page. Follow a sunbeam into the air: molecules knock the short blue waves off in every direction while red passes straight on, and that scattered blue reaches a boy's eye from all over the sky.
Throughout: header "CHAPTER 7 · LIGHT AND THE AIR", page "143", a title at the top, a "Fig." caption at the bottom, all typed on letter by letter.
0–3.8s: a boy in a blue cap in a field, a crosshatched red sun above. Title: "Why Is the Sky Blue?" Caption: "Fig. 7-1. On a clear day the whole sky looks blue. But sunlight itself looks white. Where does the blue come from?"
3.8–7.6s: push in to the sun; a white beam carries a long red wave and a short blue wave side by side. Labels pop in: "WHITE SUNLIGHT", "RED: LONG WAVES", "BLUE: SHORT WAVES". Title: "1. Sunlight is a mix of colors". Caption: "Fig. 7-2. White sunlight holds every color of the rainbow. Red light travels in long waves; blue light in short ones."
7.6–12.6s: along the beam among paired-circle molecules ("AIR MOLECULE"), the blue wave hits one and sprays out in rings: "BLUE BOUNCES OFF IN ALL DIRECTIONS". The red wave carries on: "RED PASSES STRAIGHT ON". Table top right, "LIGHT SCATTERED BY AIR": RED 1x, BLUE counting up to 6x. Title: "2. Air scatters the short waves". Caption: "Fig. 7-3. Tiny molecules of air knock short blue waves off in all directions, about six times more than long red ones."
12.6–16.4s: back to the field; dashed blue lines run from molecules all over the sky into the boy's eye ("YOUR EYE"). Title: "3. Blue arrives from every direction". Caption: "Fig. 7-4. Wherever you look, scattered blue light is coming toward your eye. So every part of the sky looks blue."
16.4–20s: full diagram holds. Title: "In Short". Caption becomes a bordered box: "The air scatters blue light out of sunlight, all across the sky. That is why the sky is blue." Hold.
LOOK: aged newsprint #EDE7D7, vermilion #D75D4E for sun and red wave, cornflower blue #4B78A4 for blue wave and sky lines, mustard ground #C4B17B, olive tree #8A7D58, faded charcoal #22201E lines and text. Lithograph print feel: fine horizontal ruling, crosshatch shading, a double-ruled diagram frame. Bold sans titles, plain sans captions, caps labels.
MOTION: calm classroom pace with holds for reading. Waves travel at steady speed; scatter rings expand smoothly, no bounce.
SOUND: warm, minimal electric piano chords around 80 BPM. Typewriter clacks on all typing, no whooshes, a resolving chord and one last key strike. No narration.
Ver prompt completoVer menos
Black-and-white ink woodcut style, rough carved lines on off-white paper. A girl folds a paper boat and sets it into the rain gutter; as it drifts through the city at night, every window it passes lights up and someone folds another boat. Short hand-lettered captions. 25 seconds, 16:9.
IDEA: One paper boat drifting left to right along the gutter is the spark. Every window it passes snaps on, and the light spreads like a chain reaction until the whole city glows and the gutter is full of boats.
Captions: lowercase hand-lettered white text in a black banner at the bottom, one per shot.
0–2.6s: a dark, hatched, rain-soaked skyline inks in on off-white paper, a small girl sitting on her front steps, rain lines jittering. Caption: "a dark, wet city".
2.6–5.1s: close-up of her mittened hands folding a cream sheet: triangle hat, brim, pop open into a boat. Caption: "she folded one boat".
5.1–7.6s: the girl with pigtails reaches down from the stoop, sets the boat on the gutter stream and lets go; it drifts right, bobbing. Caption: "and let it go".
7.6–12.6s: track right with the boat past dark facades. A ground-floor window bursts on with cream light and pointed rays, a silhouette inside; neighbours pop on; from an upper window someone drops another boat. Caption: "one window woke".
12.6–15.1s: wider street. Windows pop on in a ripple along the whole block; several boats now float together. Caption: "then the next street".
15.1–20.1s: the opening skyline again; light spreads across tenements and far towers until hundreds of windows glow. Caption: "then the whole city".
20.1–22.6s: low tracking shot along the curb: dozens of boats in a tight convoy, silhouettes watching from lit windows. Caption: "boats, and more boats".
22.6–25s: her building, every window lit; the girl sits in the central arched window holding a folded paper bird. Caption: "it started with one." Hold.
LOOK: strictly two tones like a linocut print: off-white paper #F3EFE6, carbon black #161412 for buildings, figures and banners, bright cream #FFFDF8 for window light and boats. Rough carved lines, heavy crosshatching, spiky ray bursts around lit windows. Flat side-on framing, water line low.
MOTION: animated on twos, hand-printed feel. Folds and windows snap on instantly with a short ray burst; boats drift smoothly with a gentle bob. Hard cuts; the only camera move is a slow pan along the water. The light spreads faster and faster.
SOUND: reflective fingerpicked acoustic guitar around 75–80 BPM, melancholy turning hopeful, over continuous rain hiss. Paper creases on each fold, a soft water dip, a warm switch click and small chime per window, clicks multiplying as the city lights up, a last chord ringing into the rain. No narration.
Ver prompt completoVer menos
Paper cut-out collage style, like a children's picture book made of construction paper. A little boy at his window can't sleep, so a small friendly cloud drifts down over the rooftops, borrows a bit of moonlight and glows like a nightlight until he dozes off. 20 seconds, square 1:1.
IDEA: One small smiling paper cloud is the hero: it drifts to the moon, soaks up its golden light, then floats down beside the boy's window. The film is the cloud turning from plain cream paper into a glowing nightlight.
0–3.3s: wide shot of a sleepy town at night: purple paper gabled houses, deep blue starry sky, a big textured full moon upper right. In a warm yellow attic dormer, a boy in blue leans out and looks up.
3.3–6.7s: cut to a medium close-up of the boy framed in the glowing dormer. He yawns wide, rubs one eye with his fist, then rests his chin on his folded hands on the sill.
6.7–10s: back to the wide sky. A fluffy cream paper cloud with a smiling face drifts in from the upper left and glides slowly across the stars toward the moon.
10–13.3s: close-up on the moon. The cloud eases up against its left edge and nuzzles it. Soft yellow light pulses between them, sparkles twinkle, and warm gold spreads through the cloud from inside. It blushes and smiles.
13.3–16.7s: medium-wide on the rooftop. The now golden, glowing cloud floats down on a slow eased arc and settles gently right beside the open dormer window.
16.7–20s: medium shot of the window and the glowing cloud. Tiny yellow star sparkles drift around them. The boy's eyes grow heavy and close with a contented smile as he dozes off. Hold in stillness to the end.
LOOK: midnight indigo sky #1E2243 and #262B54, plum and slate-purple rooftops #3C335C and #4D476D, warm lamp yellow windows #FED466 and #F6AD3C, creamy moon #F8E7A2 and #EED37A, cloud cream #F4EEDC turning golden. Everything is cut from textured construction paper: fibre grain, stippled roofs and sky, torn deckled edges. The glowing window anchors the centre; moon and cloud live in the upper third.
MOTION: slow, low-energy, lullaby pace. The cloud drifts smoothly with soft eased stops at the moon and at the window, with a gentle squash and stretch as it floats. The boy moves like a paper puppet: stepped blinks, swapped mouth shapes for the yawn, a simple arm rub.
SOUND: a slow, gentle lullaby on fingerpicked nylon-string guitar and warm acoustic bass with soft celesta and glockenspiel accents. Magical chimes and a soft sparkle sweep when the cloud touches the moon and fills with light, faint twinkles as it descends. The music never stops. No narration.
Ver prompt completoVer menos
¿Por qué la Luna cambia de forma cada noche? Un video corto para mi canal de ciencia para niños, texto en español.
IDEA: Un niño mira la Luna; la cámara entra en diagramas sencillos (Luna medio iluminada, órbita, cuatro fases) y vuelve al niño, que dibuja la Luna entera con el dedo. Unos 40 segundos, formato cuadrado 1:1.
0–5s: un niño de espaldas, jersey naranja, en una colina bajo un cielo estrellado, mira una Luna creciente. Se escribe letra a letra "¿Por qué la Luna cambia de forma cada noche?" ("cambia de forma" en amarillo). Una etiqueta bajo la Luna cambia "noche 3", "noche 7", "noche 11", "noche 15", y la Luna crece hasta llena.
5–16s: zoom a la Luna, que se oscurece: "La Luna no tiene luz propia." Un Sol amarillo entra por la izquierda con rayos discontinuos: "La ilumina el Sol." La mitad que mira al Sol se vuelve crema, la otra azul oscuro; etiquetas "mitad iluminada" y "mitad oscura". Luego: "El Sol siempre ilumina la mitad de la Luna."
16–26.5s: diagrama desde arriba: Sol a la izquierda, Tierra al centro, órbita discontinua. Arriba "La Luna gira alrededor de la Tierra." y, en amarillo, "El ciclo completo dura unos 29 días y medio." Abajo a la derecha, "Así la vemos:" muestra la fase. La Luna, entre el Sol y la Tierra ("Luna nueva"), avanza en sentido antihorario a saltos de un cuarto: "Cuarto creciente", "Luna llena" (detrás de la Tierra), "Cuarto menguante" y otra vez "Luna nueva".
26.5–34.5s: "Cada noche vemos un trozo distinto de su lado iluminado." Cuatro círculos en fila se llenan uno a uno con las fases y sus nombres. Debajo, una flecha amarilla curva de derecha a izquierda: "...y vuelta a empezar".
34.5–40s: de vuelta al niño. Señala la Luna creciente y una línea amarilla discontinua recorre su borde oscuro hasta cerrar el círculo. "La Luna no cambia de forma: cambia cuánto vemos de su lado iluminado." ("cambia cuánto vemos" en amarillo). Se mantiene.
LOOK: cielo azul noche #141838 a #0B0E23; Sol y palabras clave #F8C847; lado iluminado crema #F6F2DC con cráteres #D3CEB0; lado oscuro #2B3463; Tierra #2A74D9 con continentes #4AA96C; jersey #E86F45. Ilustración plana con grano suave. Sans geométrica en negrita, texto blanco centrado arriba. Líneas discontinuas; etiquetas redondeadas.
MOTION: tranquilo, una pausa de un segundo tras cada texto. Cámara suave; etiquetas y fases con pequeño rebote; la Luna avanza a pasos.
SOUND: nana de caja de música y celesta, unos 95 BPM. Tecleo en el texto, un pop en cada etiqueta, un soplo al entrar el Sol, tic-tac de engranaje en la órbita con una campanita en cada fase, pops de madera ascendentes en la fila, un brillo en la flecha y el contorno, acorde final. Sin narración.
Ver prompt completoVer menos
Como funciona
Descreva. Planeje. Desenhe. Refine.
Veja o que acontece entre o seu prompt e o primeiro quadro.
01
Descreva o vídeo
Diga o que você quer com palavras simples: o tema, para quem é, a duração, o tom. Escolha 16:9, 9:16 ou 1:1. Anexe suas capturas de tela ou seu logo para mostrá-los no vídeo, ou uma foto para servir de base a um personagem desenhado.
02
Ele planeja batidas e planos
Antes de escrever qualquer código, o agente decide os planos: o que cada um mostra, quanto tempo dura e onde caem os cortes e os impactos sonoros. As imagens e a música leem os mesmos tempos, e é por isso que os cortes caem na batida.
03
Ele desenha, compõe a trilha e confere
Escreve o código que renderiza cada quadro e a trilha em Web Audio (música e efeitos sonoros), depois revisa os próprios quadros e uma folha de contatos em busca de textos cortados, sobreposições e quadros em branco antes de você ver qualquer coisa.
04
Edite, continue, exporte
Responda no chat para mudar o que quiser; ele edita o código e renderiza de novo. Compartilhe um link público ou, em um plano pago, exporte um MP4 com a trilha sonora ou um WebM transparente para sobreposições.
Dois motores
Qual motor do iArt você deve usar?
Animation é uma das duas formas de fazer um vídeo no iArt. É a ferramenta certa quando as palavras, os dados e o timing precisam ser exatos, não para imagens com cara de filmagem.
| Animation | AI Video | |
|---|---|---|
| Como é feito | O código renderiza cada quadro (texto composto tipograficamente, SVG, uma camada de canvas); a trilha é sintetizada em código | Um modelo generativo de vídeo renderiza as imagens |
| Ideal para | Explicativos, motion graphics, vídeos ilustrados, sobreposições | Tomadas cinematográficas com cara de filmagem |
| Texto na tela | Exato (composto tipograficamente em código) | Desenhado pelo modelo; a grafia pode variar |
| Recursos | Nenhum necessário; suas capturas de tela, logos, imagens e clipes também podem aparecer | Imagens geradas |
| Narração | Narração com IA (escolha uma voz) | Narração com IA |
Vai fazer um explicativo com a tipografia exata da sua marca ou gráficos de dados? Veja vídeos explicativos.
Rode você mesmo,
ou pule a configuração.
O método é open source. Se você vive no terminal, rode com o seu próprio agente de código. Se prefere digitar uma frase no navegador, use o modo Animation.
Claude Code + javascript-animation-skills
Nosso pacote de skills open source ensina ao seu agente de código o mesmo método: grade de batidas e lista de planos, uma biblioteca de desenho, uma trilha em Web Audio, autoverificações e renderização para MP4. Criado e testado com o Claude Opus 5.5.
- – Gratuito e com licença MIT; você usa seu próprio plano do Claude Code ou seu próprio uso da API
- – Roda no Claude Code e em outros agentes de código
- – Requer Node 18+, ffmpeg, Chrome e playwright-core
- – O vídeo é um arquivo HTML que é seu e que você edita à mão
O mesmo método, em uma aba do navegador
Nada para instalar, sem terminal. Descreva o vídeo, assista e mude o que quiser respondendo no chat.
- ✓ Roda em app.iart.ai, na aba Animation da página Create
- ✓ Peça qualquer duração; vídeos longos são divididos em cenas
- ✓ Mostra suas capturas de tela, seu logo ou seu site, ou desenha um personagem a partir de uma foto
- ✓ Narração com IA opcional
- ✓ Compartilhe um link público; exporte um MP4 com a trilha sonora, ou um WebM transparente para sobreposições, em um plano pago
Perguntas frequentes
Perguntas frequentes sobre animação JavaScript
Não encontrou o que procura? Entre em contato com nossa equipe.
O que é animação JavaScript?
Animação JavaScript, no sentido de animação renderizada por código, é um vídeo em que cada quadro é produzido por código: uma função do tempo decide o que aparece na tela a cada instante, usando texto composto tipograficamente, formas SVG e desenho em canvas, e a música e os efeitos sonoros são sintetizados com a Web Audio API. O modo Animation do iArt é um gerador de animação com IA que escreve esse código para você a partir de um prompt de texto.
Qual modelo o modo Animation do iArt usa?
Claude Opus 5.5. O agente planeja as batidas e os planos, escreve o código da animação e a trilha, e revisa os próprios quadros e a folha de contatos antes de mostrar o vídeo para você. A versão open source do método, javascript-animation-skills, também foi criada e testada com o Claude Opus 5.5.
Qual pode ser a duração de um vídeo?
Peça a duração que quiser. Um vídeo mais longo é dividido em cenas no mesmo projeto, com o mesmo visual e a mesma trilha, e você pode mudar qualquer cena depois respondendo no chat. O vídeo da semente que vira árvore, nesta página, tem 40 segundos.
O modo Animation adiciona locução ou narração?
Sim. Escolha uma voz na caixa de mensagem e o vídeo ganha narração, com a imagem sincronizada às palavras. Sem voz, a trilha sonora é música e efeitos sonoros sintetizados em código.
Posso usar minhas próprias imagens ou fotos?
Sim. Capturas de tela, logos, fotos de produto e gravações de tela curtas que você anexar aparecem no vídeo do jeito que são; uma foto de uma pessoa ou de um visual de que você gosta serve de referência para um personagem desenhado ou para o estilo. Você também pode passar o endereço do seu site.
Quanto custa, e posso baixar o vídeo?
Contas novas recebem um crédito de cadastro de $2. Com $2 dá para fazer um vídeo de menos de 30 segundos. Qualquer vídeo pode ser compartilhado por link público. Exportar um MP4 com a trilha sonora exige um plano pago (o Pro custa $20/mês). Já sobreposições, como lower thirds, são exportadas como WebM transparente.
Existe um jeito gratuito e open source de fazer isso?
Sim. O javascript-animation-skills (github.com/iart-ai/javascript-animation-skills, MIT) é um conjunto de skills do Claude Code que ensina ao seu agente de código o mesmo método e renderiza o vídeo em MP4 na sua máquina. Requer Node 18+, ffmpeg e Chrome. O modo Animation do iArt é a mesma abordagem, sem a configuração.
Descreva o vídeo.
O agente escreve cada quadro.
Cada quadro e a trilha escritos em código. Comece com o crédito de cadastro de $2; exporte MP4 em um plano pago.