Langsung ke konten
Skillpedia
Motion & animasi11k Β· #11724

hyperframes

Fungsinya

Skill ini meminta AI menulis video pendek beranimasi dari tata letak HTML, seperti grafik, kartu teks atau klip bermerek. Skill ini ditujukan untuk orang yang membuat penjelasan dan video sosial dari data atau teks.

Kapan dipakai

  • βœ“Saat Anda ingin grafik, dasbor atau penjelasan data beranimasi diubah menjadi video.
  • βœ“Saat Anda ingin kartu kutipan, hitung mundur atau klip teks beranimasi.
  • βœ“Saat Anda ingin klip sosial vertikal dari tata letak yang Anda jelaskan, bukan rekaman foto realistis.

Link skill

https://github.com/spinabot/brigade/blob/main/skills/hyperframes/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/spinabot/brigade/blob/main/skills/hyperframes/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBuat video vertikal 15 detik yang menganimasikan grafik batang dari tiga produk terlaris kami.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

AI menulis satu berkas HTML dengan linimasa yang mengatur setiap bagian yang bergerak. Alat rendering melangkah melalui linimasa itu bingkai demi bingkai dan mengodekan bingkainya menjadi MP4, sehingga masukan yang sama menghasilkan video yang sama.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

hyperframes β€” HTML β†’ deterministic MP4

The render_video tool renders an HTML composition you write into a pixel-exact MP4. A headless Chrome steps a GSAP master timeline frame by frame, captures one image per frame, and FFmpeg encodes them β€” so the same HTML always produces the same video. This is the right tool for anything programmatic and data-driven; reach for generate_video only when you need photoreal/AI-generated footage.

Great fits: animated bar/line/donut charts, KPI dashboards, "N facts about X" explainers, quote/announcement cards, kinetic typography, countdowns, before/after reveals, branded intros/outros, vertical social clips.

The composition contract (this is what makes or breaks a render)

Write ONE self-contained HTML document. Two things are mandatory and non-obvious:

  1. A paused GSAP timeline registered to window.__timelines[<composition-id>]. HyperFrames seeks this timeline to render each frame. Total video duration = tl.duration() β€” you do NOT set duration with an attribute.
  2. data-* attributes on the root and on every timed element.

Root composition element β€” required: data-composition-id (must match the window.__timelines key), data-width, data-height, data-start; plus data-track-index.

Timed children β€” data-start + data-track-index on every one; visible elements (<img>, text/graphic <div>s) also need class="clip"; <img> also takes data-duration. Do not put data-duration on the root/composition β€” its duration comes from the timeline.

<!doctype html>
<html>
  <head>
    <meta charset="utf-8" />
    <!-- Load GSAP (see "GSAP + assets" below). -->
    <script src="https://cdn.jsdelivr.net/npm/gsap@3/dist/gsap.min.js"></script>
    <style>
      body { margin: 0; }
      .stage { width: 1080px; height: 1920px; position: relative; overflow: hidden;
               background: #0b0b12; color: #fff; font-family: system-ui, sans-serif; }
      .title { position: absolute; top: 220px; left: 80px; font-size: 96px;
               font-weight: 800; opacity: 0; transform: translateY(24px); }
    </style>
  </head>
  <body>
    <div class="stage"
         data-composition-id="promo"
         data-width="1080" data-height="1920"
         data-start="0" data-track-index="0">
      <div class="title clip" data-start="0" data-duration="4" data-track-index="0">
        Ship faster.
      </div>
    </div>
    <script>
      // A PAUSED timeline β€” HyperFrames drives playback by seeking it per frame.
      const tl = gsap.timeline({ paused: true });
      tl.to(".title", { opacity: 1, y: 0, duration: 0.7, ease: "power2.out" }, 0.4)
        .to(".title", { opacity: 0, duration: 0.5, ease: "power2.in" }, 3.5);
      // Register under the SAME id as data-composition-id. This is mandatory.
      window.__timelines = window.__timelines || {};
      window.__timelines["promo"] = tl;
    </script>
  </body>
</html>
  • Vertical 1080Γ—1920 for TikTok/Reels/Shorts, 1920Γ—1080 for landscape, 1080Γ—1080 for square feed posts.
  • Frame rate is an engine default (the tool doesn't expose an fps flag) β€” author for smooth motion at 30fps.

GSAP + assets

The tool renders a single standalone index.html (no project scaffold), so the composition must bring its own GSAP and assets:

  • GSAP: load it via a <script src="…gsap.min.js"> (CDN as above) or paste the minified source inline. It must be defined before your timeline script runs.
  • Assets: embed images/fonts as data: URIs so nothing depends on external files.
  • Determinism: never drive motion from Date.now(), Math.random(), setTimeout, or a hand-rolled requestAnimationFrame loop β€” put all motion on the GSAP timeline. Off-timeline animation desyncs from the frame stepper.

Workflow

  1. Write the composition to the contract above with real data/text (never lorem).
  2. Call render_video with { html, output_name?, lint? }. It lints, renders in an isolated subprocess (a real render legitimately takes a minute or more), and returns a saved MP4 as a MEDIA:<path> line.
  3. Deliver it with send_media({ path }).
  4. Handle failures by errorType:
    • composition_invalid β€” read the lint message, fix the HTML, retry.
    • render_failed β€” read the stderr excerpt (bad timeline id, missing GSAP, etc.).
    • render_timeout β€” the composition is too heavy; simplify or shorten it.
    • render_unavailable β€” the
Pertanyaan umum

Apakah ini untuk materi hasil AI?

Tidak. Untuk materi foto realistis atau hasil AI, skill pembuatan video terpisah lebih cocok.

Apakah masukan yang sama selalu menghasilkan video yang sama?

Ya. Karena linimasa dirender bingkai demi bingkai, hasilnya deterministik.

Bagaimana panjang video ditentukan?

Panjangnya berasal dari linimasa di dalam berkas, sehingga linimasa menentukan total durasi.

Detail

Deskripsi asli dari pembuat

Author HTML compositions that the `render_video` tool turns into deterministic MP4 video β€” animated charts and dashboards, data explainers, text/quote cards, kinetic typography, product teasers, and branded short-form social clips. Use when the user asks Brigade to make, render, animate, or produce a video from data, text, or a layout (NOT photoreal/AI footage β€” that's `generate_video`).

repo: spinabot/brigade

Popularitas

Bintang GitHub
11k
Peringkat
#11724
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa