Communitygithub.com

loop-cover

Verwandle ein Newsletter- oder Blog-Cover in ein nahtloses, sich wiederholendes GIF mit 896 x 640 Pixeln, 180 Bildern bei 20 fps. Nur das von dir benannte Element bewegt sich, die Schleife ist so gedreht, dass Bild 1 das fertige Bild zeigt, und die Naht wird gemessen, nicht geschätzt. Verwende es, wenn jemand sagt:

Was ist loop-cover?

Loop-Cover ist ein Skill, der ein statisches Cover (PNG oder HTML) in ein hochwertiges, nahtloses Loop-GIF verwandelt, um es in Feeds hervorzuheben. Es arbeitet zuverlässig mit nur einem einzigen benannten Bewegungselement, sodass der Rest des Covers völlig ruhig bleibt – dies verhindert das „Du hast das gesamte Bild verändert“-Problem. Der Skill behebt zwei typische Fallstricke: die Kamera wird durch Code-Animation fixiert (kein ungewolltes Zoomen) und die Schleife wird so rotiert, dass das fertige Bild als erstes Frame erscheint, was für E-Mail-Vorschauen entscheidend ist. Er erfordert die Marke (via `brand.md` oder `brand-intake`) und unterstützt sowohl HTML- als auch PNG-Cover, wobei Bewegung durch einen reinen Sinuszyklus, ein Zeichnen, ein langsames Verschieben oder ein Leuchten erfolgt. Die Naht wird mit einem ffmpeg- und Python-Skript gemessen, nicht geschätzt, und die Ausgabe muss ohne Dithering enkodiert werden. Der Skill wird durch eine Reihe von aus der Praxis gelernten Lektionen ergänzt – wie das Testen auf 240 Pixel Breite, das Hinzufügen von `eval=frame` in ffmpeg-Filtern und die Überprüfung, dass das hochgeladene GIF wirklich mit `.gif` endet.

Funktioniert mit~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/charlie947/motion-graphics-skills/tree/main/skills/loop-cover

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Loop-Cover-GIF

Ein Cover, das sich bewegt, fällt in einem Feed voller Standbilder auf. Es funktioniert nur, wenn die Bewegung klein ist, die Schleife niemals springt und das erste Bild für sich allein noch Sinn ergibt.

Bevor du beginnst: Lies brand.md und MOTION.md, falls vorhanden. Falls nicht, führe zuerst brand-intake aus oder frage nach Hex-Codes, einer Schriftart und einer Logodatei. Nenne ein Ergebnis niemals markenkonform ohne diese Angaben.

Schritt 1: Frage nach drei Dingen, dann warte

  1. Das Cover. Ein fertiges Standbild (PNG) oder ein in HTML gebautes Cover. 896 x 640 oder ein größeres Bild mit demselben 7:5-Format.
  2. Das eine Element, das sich bewegt, klar benannt. „Der Leuchtturmstrahl.“ „Die orangefarbene Linie, die sich selbst zeichnet.“ „Die Linien zwischen den Zellen.“
  3. Wie es sich bewegt. Ein Puls, ein Zeichnen, ein langsames Verschieben oder ein Leuchten. Eine Bewegung, nicht drei.

Schritt 2: Baue es

Falls das Cover HTML ist: Animiere nur das benannte Element als reine Funktion der Zeit, füge window.seek(seconds) hinzu und nimm 180 Bilder bei 20 fps (9 Sekunden) auf.

Falls das Cover ein Bild ist: Animiere das Standbild in Code. Erstelle eine Maske des benannten Elements anhand der Farbe (z. B. jedes Pixel, bei dem Blau viel stärker als Rot ist), weiche seine Kante um ein paar Pixel auf und ändere nur diese Pixel, Bild für Bild. Nichts außerhalb der Maske bewegt sich.

Für beide: Verwende einen sauberen Sinuszyklus oder ein Zeichnen, Halten und Ausblenden über die 9 Sekunden, sodass das letzte Bild in das erste übergeht.

Drehe die Schleife so, dass Bild 1 das fertige Bild ist. Posteingänge und Linkvorschauen zeigen Bild 1 als Standbild. Bild i zeichnet den Moment ((i + offset) mod 180) / 20 Sekunden, wobei offset den vollständig gezeichneten Zustand an den Anfang setzt.

Kodiere ohne Dithering, da Dithering jedem Bild eines flachen Bildes ein Flackern hinzufügt:

ffmpeg -y -framerate 20 -i f%03d.png -filter_complex "split[x][y];[x]palettegen=max_colors=128:stats_mode=full[p];[y][p]paletteuse=dither=none" -loop 0 cover.gif

Schritt 3: Messe es

ffmpeg -v error -y -i cover.gif -vf scale=216:154,format=gray -f rawvideo frames.raw
python3 -c "
n = 216 * 154
d = open('frames.raw', 'rb').read()
f = [d[i:i + n] for i in range(0, len(d), n)]
diff = lambda a, b: sum(abs(x - y) for x, y in zip(a, b)) / n
print('frames', len(f))
print('seam', round(diff(f[-1], f[0]), 2))
print('excursion', round(max(diff(x, f[0]) for x in f), 2))
"

Zielwerte von Covern, die ich bereits ausgeliefert habe: 180 Bilder, eine Naht von 0,0 bis 0,3, eine Abweichung von etwa 0,7 bis 2,8 und eine Dateigröße zwischen 0,6 und 2,3 MB. Eine Abweichung nahe Null bedeutet, dass sich nichts Sichtbares bewegt.

Was ich auf die harte Tour gelernt habe

  • „Du hast das gesamte Bild verändert.“ Mein erstes GIF zog einen Balken über das ganze Bild. Animiere nur das, was benannt wurde.
  • Ein Videomodell fügt eine Kamerafahrt hinzu. Obwohl gesagt wurde „Kamera hält absolut still“, zoomte es trotzdem hinein. Das Animieren des Standbilds in Code ist der einzige Weg, die Kamera zu fixieren.
  • Messe Bewegung nie am halben Bild. Ein Sinus ist dort wieder auf Null, sodass eine funktionierende Animation keine Bewegung meldet. Messe die größte Änderung gegenüber Bild 0.
  • Füge in ffmpegs eq-Filter eval=frame hinzu, sonst wird der Ausdruck einmal ausgeführt und nichts bewegt sich.
  • Verkleinere es auf 240 Pixel Breite und schau noch einmal hin. Das ist die Größe in einem Posteingang. Wenn sich das sich bewegende Element auflöst, ist es zu klein.
  • Lade das GIF selbst hoch. Manche Hochlade-Werkzeuge konvertieren in PNG, und die Animation ist still und leise verschwunden. Überprüfe, ob der hochgeladene Link immer noch auf .gif endet.

Individual skills in this repo

This repo contains 14 individual skills — each has its own dedicated page.

animated-chart

Make a looping animated chart for LinkedIn or a newsletter in code with Claude Code. Bars that become a line, a number that counts up, a before and after. Every value stays exactly as given. Use when someone says

apple-launch-film

Rebuild an Apple-style Mac launch film entirely in code with Claude Code. A thin menu bar, the black notch growing into widgets one scene at a time, full-screen gradient wallpapers and one short caption per scene. No screen recording, no After Effects. Use when someone says

brand-intake

The setup step every other skill in this pack reads. A short interview plus 3 to 5 reference frames becomes two files in your project, brand.md (who you are, what you sell, your assets) and MOTION.md (your colours, type, timing and motion rules), plus a rule in CLAUDE.md so Claude reads them before it animates anything. Use at the start of any motion project, or when someone says

launch-video

Make a 30-45 second product launch video in code with Claude Code, the kind SaaS companies post on launch day. One sentence split across scenes, real product screens with slow camera moves, a typed prompt, a proof beat and a clear call to action. Use when someone says

milestone-reveal

Make a 12-second looping milestone clip in code with Claude Code. Thousands of tiny points drift like a night sky, pull together into your real number (followers, subscribers, revenue, customers), a line draws underneath and the label settles in. Premium, not a party. Use when someone says

model-showdown

Give the same motion brief to three AI models, keep each first try, render all three the same way and stack them into one comparison video with model names and logos. Makes a 16:9 side-by-side for a newsletter and a 1080 x 1920 stacked reel for Instagram and TikTok. Use when someone says

motion-brief-writer

Turns a rough idea for an animated graphic into a precise build brief for Claude Code, in your own brand. Asks for anything essential first (exact numbers, size, length, brand), keeps real results apart from sample data, and never invents a figure. Use when someone says

motion-effects

Build any of 16 premium motion effects from scratch in your own brand, as one 8-second looping HTML file with window.seek(seconds) so it exports frame-exact to MP4 or GIF. Interfaces (button to player, search to results, card to workspace, tabs to panels), data (chart morph, dashboard zoom, spring stack, magnetic dock), type (masked type, elastic type, text to layout, image reveal) and systems (perspective shift, glass focus, flowing paths, particle logo). Use when someone says

motion-prompt-writer

Write a complete 8-part Claude Motion prompt (The bar, Format, The one rule, Look, Motion, Never, Before you finish, The scene) for one short looping motion graphic, in your own brand. Takes your brand (a website screenshot, a logo, hex codes, or nothing for the Apple-style default) and one moment you want to show, in plain words. Use when someone says

newsletter-promo

Turn a newsletter edition into a 12-20 second promo clip for LinkedIn, Instagram or X that drives people to read and subscribe. Hook question, three proof frames from the edition, then the newsletter name and where to read it. Use when someone says

reel-export

Turn any horizontal or square motion video into a 1080 x 1920 Instagram Reel or TikTok that uploads cleanly. Headline and logos inside the safe zone, H.264, yuv420p, limited colour range, bt709, a silent audio track when there is no sound, and an ffprobe check before upload. Use when someone says

reference-to-motion

Turn references you admire into a scene-by-scene Claude Motion prompt for your own topic and brand. Takes a video for the moves (screenshots, frames or a contact sheet of a reel or ad) and, optionally, a look reference for the style (a website, a brand, a moodboard). Use when someone says

title-sequence-3d

Make a cinematic 3D title sequence (8-15 seconds) in code with Claude Code and Three.js. A camera moves through a lit scene, such as a rainy street at night with brand names as neon signs, then a big question or title lands. Use when someone wants a scroll-stopping opener, a film-style intro,

vox-explainer

Make a short Vox-style documentary explainer (30-60 seconds) entirely in code with Claude Code. Torn paper, halftone texture, bold condensed type, motion on twos. Use when someone says

Verwandte Skills