Creador de Animaciones JavaScript
Cada fotograma, dibujado en código.
Tú solo lo describes.
Un agente sobre Claude Opus 5.5 escribe el JavaScript que renderiza cada fotograma
y compone la banda sonora en código. Sin fotogramas clave, sin línea de tiempo, sin terminal.
¿Qué es la animación JavaScript?
Un video escrito como código.
Renderizado de nuevo en cada fotograma.
El modo Animation de iArt.ai convierte una descripción de una frase en una animación JavaScript: un video corto en el que cada fotograma se renderiza con código que escribe un agente con Claude Opus 5.5. La tipografía se compone como texto real, las formas y los trazados se dibujan en SVG, y una capa de canvas pinta lo dibujado a mano, las partículas o las texturas; cada fotograma es una función del tiempo, así que el video se reproduce, se recorre y se exporta de la misma manera. La música y los efectos de sonido se sintetizan en código con la Web Audio API.
iArt.ai lleva ese método a una pestaña del navegador. Su modo Animation es un agente sobre Claude Opus 5.5: describes el video y el agente planifica los beats y los planos, escribe el código de animación y la banda sonora, revisa sus propios fotogramas y reproduce el resultado en tu navegador. No hay un estilo predeterminado. El aspecto sale del tema y de tus palabras, así que un explicativo sobre pagos y un cuento para dormir para un niño de dos años no se parecen en nada.
Por qué se difundió ahora: dibujar un video entero en código depende del razonamiento espacial de un modelo, de su gusto y de su capacidad para escribir código largo y cuidadoso, y también de que pueda mirar sus propios fotogramas y corregirlos. Con Claude Opus 5.5, los videos dibujados con código se volvieron lo bastante buenos como para que la gente empezara a compartirlos, y "cada fotograma en JavaScript" se convirtió en un género propio.
Para la definición completa, consulta qué es la animación JavaScript. Para hacerlo tú mismo paso a paso, lee cómo hacer una animación con Claude Opus 5.5.
¿Claude Motion no está en tu plan? Mira cuatro formas de hacer el mismo tipo de animación sin él.
Ejemplos
Videos dibujados enteramente en código.
Cada video se hizo en el modo Animation de iArt a partir de la primera frase del prompt que aparece debajo, con cada fotograma y cada nota escritos en código. Una sola frase ya da un buen video. El resto de cada prompt es el brief que escribimos a partir del video: sus planos, su estilo y su sonido. Prueba envía el prompt completo, así obtienes un video muy parecido a este, no una copia.
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
Cómo funciona
Describe. Planifica. Dibuja. Ajusta.
Esto es lo que pasa entre tu prompt y el primer fotograma.
01
Describe el video
Di lo que quieres con tus propias palabras: el tema, para quién es, la duración, el tono. Elige 16:9, 9:16 o 1:1. Adjunta tus capturas de pantalla o tu logo para mostrarlos en el video, o una foto en la que basar un personaje dibujado.
02
Planifica beats y planos
Antes de escribir código, el agente decide los planos: qué muestra cada uno, cuánto dura y dónde caen los cortes y los golpes de sonido. Las imágenes y la música leen los mismos tiempos; por eso los cortes caen justo en el beat.
03
Dibuja, musicaliza y revisa
Escribe el código que renderiza cada fotograma y la banda sonora en Web Audio (música y efectos de sonido), y luego revisa sus propios fotogramas y una hoja de contactos en busca de textos recortados, colisiones y fotogramas en blanco antes de que veas nada.
04
Edita, continúa, exporta
Responde en el chat para cambiar lo que sea; el agente edita el código y vuelve a renderizar. Comparte un enlace público o, en un plan de pago, exporta un MP4 con la banda sonora o un WebM transparente para superposiciones.
Dos motores
¿Qué motor de iArt te conviene?
Animation es una de las dos formas de hacer un video en iArt. Es la herramienta indicada cuando las palabras, los datos y el timing deben ser exactos, no para metraje con aspecto de filmación.
| Animation | AI Video | |
|---|---|---|
| Cómo se hace | El código renderiza cada fotograma (texto tipográfico, SVG, una capa de canvas); la banda sonora se sintetiza en código | Un modelo generativo de video renderiza las imágenes |
| Ideal para | Explicativos, motion graphics, videos ilustrados, superposiciones | Tomas cinematográficas con aspecto de filmación |
| Texto en pantalla | Exacto (compuesto en código) | Lo dibuja el modelo; la ortografía puede variar |
| Recursos | No hacen falta; tus capturas, logos, imágenes y clips también pueden aparecer | Metraje generado |
| Voz en off | Voz en off con IA (elige una voz) | Voz en off con IA |
¿Haces un explicativo con la tipografía exacta de tu marca o gráficos de datos? Mira videos explicativos.
Hazlo tú mismo,
o sáltate la configuración.
El método es de código abierto. Si vives en la terminal, ejecútalo con tu propio agente de programación. Si prefieres escribir una frase en el navegador, usa el modo Animation.
Claude Code + javascript-animation-skills
Nuestro paquete de skills de código abierto le enseña a tu agente de programación el mismo método: cuadrícula de beats y lista de planos, una biblioteca de dibujo, una banda sonora en Web Audio, autorrevisiones y un render a MP4. Creado y probado con Claude Opus 5.5.
- – Gratis y con licencia MIT; usas tu propio plan de Claude Code o tu propio uso de la API
- – Funciona en Claude Code y en otros agentes de programación
- – Requiere Node 18+, ffmpeg, Chrome y playwright-core
- – El video es un archivo HTML que es tuyo y que puedes editar a mano
El mismo método, en una pestaña del navegador
Nada que instalar, sin terminal. Describe el video, míralo reproducirse y cámbialo respondiendo en el chat.
- ✓ Funciona en app.iart.ai, en la pestaña Animation de la página Create
- ✓ Pide la duración que quieras; los videos largos se dividen en escenas
- ✓ Muestra tus capturas de pantalla, tu logo o tu sitio, o dibuja un personaje a partir de una foto
- ✓ Voz en off con IA opcional
- ✓ Comparte un enlace público; exporta un MP4 con la banda sonora, o un WebM transparente para superposiciones, en un plan de pago
Preguntas frecuentes
Preguntas frecuentes sobre animación JavaScript
No encuentra lo que busca? Comuniquese con nuestro equipo.
¿Qué es la animación JavaScript?
La animación JavaScript, entendida como animación renderizada con código, es un video en el que cada fotograma lo produce el código: una función del tiempo decide qué se ve en pantalla en cada momento, con texto tipográfico, formas SVG y dibujo en canvas, y la música y los efectos de sonido se sintetizan con la Web Audio API. El modo Animation de iArt es un generador de animación con IA que escribe ese código por ti a partir de un prompt de texto.
¿Qué modelo usa el modo Animation de iArt?
Claude Opus 5.5. El agente planifica los beats y los planos, escribe el código de animación y la banda sonora, y revisa sus propios fotogramas y la hoja de contactos antes de mostrarte el video. La versión de código abierto del método, javascript-animation-skills, también se creó y se probó con Claude Opus 5.5.
¿Cuánto puede durar un video?
Pide la duración que quieras. Un video más largo se divide en escenas en el mismo proyecto, con el mismo estilo y la misma música, y puedes cambiar cualquier escena después respondiendo en el chat. El video de la semilla que se convierte en árbol, en esta página, dura 40 segundos.
¿El modo Animation agrega voz en off o narración?
Sí. Elige una voz en el cuadro de mensaje y el video se narra, con la imagen sincronizada con las palabras. Sin voz, la banda sonora es música y efectos de sonido sintetizados en código.
¿Puedo usar mis propias imágenes o fotos?
Sí. Las capturas de pantalla, logos, fotos de producto y grabaciones de pantalla cortas que adjuntes aparecen en el video tal cual; una foto de una persona o de un estilo que te guste se usa como referencia para un personaje dibujado o para el estilo. También puedes darle la dirección web de tu sitio.
¿Cuánto cuesta y puedo descargar el video?
Las cuentas nuevas reciben un crédito de registro de $2. Con $2 alcanza para un video de menos de 30 segundos. Cualquier video se puede compartir con un enlace público. Exportar un MP4 con la banda sonora requiere un plan de pago (Pro cuesta $20/mes). Las superposiciones, como los lower thirds, se exportan en cambio como WebM transparente.
¿Hay una forma gratuita y de código abierto de hacerlo?
Sí. javascript-animation-skills (github.com/iart-ai/javascript-animation-skills, MIT) es un conjunto de skills de Claude Code que le enseña a tu agente de programación el mismo método y renderiza el video a MP4 en tu computadora. Requiere Node 18+, ffmpeg y Chrome. El modo Animation de iArt es el mismo enfoque sin la configuración.
Describe el video.
El agente escribe cada fotograma.
Cada fotograma y la música, escritos en código. Empieza con el crédito de registro de $2; exporta MP4 en un plan de pago.