Communitygithub.com

loop-cover - 루핑 커버 GIF

뉴스레터나 블로그 커버를 896×640, 180프레임, 20fps의 매끄러운 루핑 GIF로 변환합니다. 지정한 단 하나의 요소만 움직이며, 루프가 회전되어 첫 번째 프레임이 완성된 그림을 보여주고, 이음새는 눈대중이 아닌 측정으로 처리됩니다. 누군가 "움직이는 커버"를 요청할 때 사용하세요.

loop-cover - 루핑 커버 GIF란 무엇인가요?

이 기술(AI 에이전트 스킬)은 뉴스레터나 블로그 커버를 매끄럽게 루핑하는 GIF로 변환합니다. 사용자는 완성된 정지 이미지(PNG) 또는 HTML로 제작된 커버, 움직일 단 하나의 요소(예: "등대 빛", "주황색 선이 그려지는 모습"), 그리고 움직임 유형(맥동, 드로우온, 느린 드리프트, 글로우)을 지정해야 합니다. HTML 커버의 경우 시간 함수로 애니메이션을 구현하고 `window.seek(seconds)` 함수를 추가하며, 이미지 커버의 경우 지정된 요소의 색상 기반 마스크를 생성하여 해당 픽셀만 프레임별로 변경합니다. 180프레임(9초, 20fps)을 캡처하고 첫 번째 프레임이 완성된 상태를 보여주도록 루프를 회전시켜 받은 편지함 미리보기에서도 의미 있게 보이도록 합니다. 디더링 없는 인코딩으로 깜빡임을 방지하고, `ffmpeg`와 Python 스크립트로 이음새(0.0~0.3)와 진폭(0.7~2.8)을 측정합니다. 브랜드 가이드(`brand.md`, `MOTION.md`)를 먼저 참조하는 것이 중요하며, 모든 부분이 아닌 지정된 요소만 애니메이션 되도록 하고, 결과물을 실제 메일함 크기(240px 너비)로 확인하는 등 여러 실전 교훈이 포함되어 있습니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/charlie947/motion-graphics-skills/tree/main/skills/loop-cover

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

루핑 커버 GIF

움직이는 커버는 정지 이미지로 가득한 피드에서 주목을 받습니다. 단, 움직임이 작고, 루프가 절대 끊기지 않으며, 첫 번째 프레임만으로도 내용이 충분히 이해되어야 합니다.

시작하기 전에: brand.md와 MOTION.md 파일이 있으면 먼저 읽으세요. 없으면 먼저 brand-intake를 실행하거나, 헥스 코드, 폰트, 로고 파일을 요청하세요. 이 파일들 없이 결과물이 브랜드에 부합한다고 말하지 마세요.

1단계: 세 가지를 요청한 후 기다리세요

  1. 커버. 완성된 정지 이미지(PNG) 또는 HTML로 제작된 커버. 896×640 해상도이거나 동일한 7:5 비율의 더 큰 이미지.
  2. 움직일 하나의 요소를 명확히 이름을 지정하세요. "등대 빛", "주황색 선이 그려지는 모습", "셀 사이의 선" 등.
  3. 움직임 방식. 맥동, 드로우온, 느린 드리프트, 글로우 중 하나. 세 가지가 아닌 하나의 움직임.

2단계: 제작하기

커버가 HTML인 경우: 이름이 지정된 요소만 시간의 순수 함수로 애니메이션하고, window.seek(seconds)를 추가한 후 180프레임을 20fps(9초)로 캡처하세요.

커버가 이미지인 경우: 코드로 정지 이미지에 애니메이션을 적용하세요. 이름이 지정된 요소를 색상으로 마스킹하고(예: 파란색이 빨간색보다 훨씬 강한 모든 픽셀), 가장자리를 몇 픽셀 부드럽게 만든 후 해당 픽셀만 프레임별로 변경하세요. 마스크 밖의 어떤 픽셀도 움직이지 않습니다.

두 경우 모두 9초 동안 하나의 깨끗한 사인파 사이클 또는 하나의 드로우온-홀드-페이드 패턴을 사용하여 마지막 프레임이 첫 번째 프레임으로 자연스럽게 이어지도록 하세요.

루프를 회전시켜 첫 번째 프레임이 완성된 그림이 되도록 하세요. 받은 편지함과 링크 미리보기에서는 첫 번째 프레임이 정지 이미지로 표시됩니다. 프레임 i는 ((i + offset) mod 180) / 20초의 순간을 그리며, 여기서 offset은 완전히 그려진 상태가 먼저 오도록 합니다.

디더링 없이 인코딩하세요. 디더링은 평평한 이미지의 모든 프레임에 깜빡임을 추가합니다:

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

3단계: 측정하기

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))
"

제가 배송한 커버의 목표: 180프레임, 이음새 0.00.3, 진폭 약 0.72.8, 파일 크기 0.6~2.3MB. 진폭이 0에 가까우면 움직이는 요소가 보이지 않는다는 뜻입니다.

힘들게 배운 점

  • "이미지를 완전히 바꿨어요." 첫 번째 GIF에서는 전체 프레임에 걸쳐 밴드를 휩쓸었습니다. 이름이 지정된 요소만 애니메이션하세요.
  • 비디오 모델은 카메라 움직임을 추가합니다. "카메라가 완전히 고정"되라고 지시해도 여전히 밀어 넣습니다. 정지 이미지를 코드로 애니메이션하는 것이 카메라를 고정하는 유일한 방법입니다.
  • 중간 프레임에서 움직임을 측정하지 마세요. 사인파는 중간에서 0으로 돌아가므로, 제대로 작동하는 애니메이션에서도 움직임이 없다고 보고됩니다. 0번 프레임 대비 가장 큰 변화를 측정하세요.
  • ffmpeg의 eq 필터에 eval=frame을 추가하세요. 그렇지 않으면 표현식이 한 번만 실행되어 아무것도 움직이지 않습니다.
  • 240px 너비로 줄여서 다시 확인하세요. 그 크기가 받은 편지함에서 보이는 크기입니다. 움직이는 요소가 사라지면 너무 작은 것입니다.
  • GIF 자체를 업로드하세요. 일부 업로드 도구는 PNG로 변환하여 애니메이션이 조용히 사라집니다. 업로드된 링크가 여전히 .gif로 끝나는지 확인하세요.

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

관련 스킬