Communitygithub.com

muhammedadnank/Antigravity-Skills

動画をApple風のスクロール駆動ランディングページに変換します。スクロールに合わせてフレームが切り替わるシネマティックなヒーローを生成します。

Antigravity-Skills とは?

このスキルは、ユーザーが提供した動画から、スクロールに応じてフレームが切り替わるApple製品ページ風のランディングページを自動生成します。ffmpegを使用して動画から均等にフレームを抽出し、スティッキーポジションとJavaScriptのスクロールリスナーを備えた自己完結型のHTMLページを構築します。主にClaude Codeでの使用を想定しており、YUV.AIプロジェクトの場合はNeonモード(ピンク/シアン/白)のデザインシステムを適用し、それ以外のプロジェクトでは動画の雰囲気に合ったカラーパレットを選択します。出力は `index.html` と `frames/` ディレクトリを含む単一フォルダで、任意の静的ホストにデプロイできます。FFmpegとPythonスクリプトに依存しますが、Node.jsなどの追加のビルドツールは必要ありません。

対応~Claude Code~Codex CLI~Cursor✓Antigravity
npx skills add https://github.com/muhammedadnank/Antigravity-Skills/tree/HEAD/skills/video-to-landing-page

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

動画 → スクロール駆動ランディングページ

Apple製品ページやGitHub Copilotランディングのように、スクロールに合わせて再生されるビデオヒーローを備えた、シネマティックなランディングページを構築します。ソース動画からフレームを抽出し、ユーザーのスクロールに応じてフレームが切り替わります。スティッキーなヒーロー領域の下には、通常スクロールのセクションにコピーとCTAが配置されます。

呼び出すタイミング

  • ユーザーが動画をドロップし、「ランディングページ」「スクロールサイト」「スクロールフレームヒーロー」「動画からウェブサイト」などを依頼した場合
  • 「Apple風スクロール」「GitHub Copilotランディング」「スクラブオンスクロール」「フレームオンスクロール」といった言及があった場合
  • ヘブライ語の同等表現: "דף נחיתה מסרטון", "אתר עם גלילה", "סרטון בגלילה"

保存場所

デフォルト: ~/Documents/yuv-projects/landings/<slug>/ — ランディングページは常にここに保存し、後で見つけられるようにしてください。必要に応じて親ディレクトリを作成します。

mkdir -p ~/Documents/yuv-projects/landings
cd ~/Documents/yuv-projects/landings
# ここに <slug>/ を構築

最終パス: ~/Documents/yuv-projects/landings/<slug>/。ビルドの最後に、ランディングがどこにあるかをユーザーに伝えてください。


ワークフロー(8ステップ)

  1. ソースを調査 — ffprobe で長さ、fps、寸法、音声を確認
  2. フレーム数を決定 — デフォルト 80。最小 40(それ以下はカクつく)、最大 160(ページが重くなる)。長さで選択: ≤10秒 → 50、10~30秒 → 80、30~60秒 → 120、>60秒 → 160
  3. 出力ディレクトリを決定 — デフォルト ~/Documents/yuv-projects/landings/<slug>/。<slug> は短く、動画名やトピックから派生させる。明示的な要求があった場合のみ上書き
  4. フレームを抽出 — references/extract-frames.py <source-video> <output-dir> [count] を実行。output-dir/frames/f_0001.jpg… として出力。JPG品質は一貫して82、最大幅1920px(ソースが大きい場合はダウンスケール)
  5. references/landing-template.html をコピーしてカスタマイズ し、output-dir/index.html に保存:
    • __FRAMES__ プレースホルダーを各フレームの <img> タグに置き換え(ビルドスクリプトが --build-html を渡すと自動で行います)
    • __HEADLINE__、__TAGLINE__、__CTA_TEXT__、__CTA_HREF__、各セクションを記入
    • ヘブライ語コンテンツの場合: <html lang="he" dir="rtl"> を設定し、フォントを Rubik/Assistant に変更(references/design-notes.md 参照)
  6. フレームを最適化 — ビルドスクリプトは既に最大幅1920pxにスケーリング。ページの総容量が12MBを超える場合は、品質を75に下げるかフレーム数を減らす
  7. プレビュー — python -m http.server を出力ディレクトリ内で実行し、http://localhost:8000 を開く。快適なマシンで滑らかにスクロール
  8. デプロイ — フォルダを Vercel/Netlify/Cloudflare Pages にドロップ。ビルドステップは不要

スクロールメカニズム

  • 外側のスクローラー .scroll-stage の高さはビューポート単位で設定(デフォルト 600vh = 全フレームを通過するのに5画面分スクロール)
  • スティッキーヒーロー position: sticky; top: 0; height: 100vh には、すべてのフレームが絶対配置で含まれ、アクティブなもの以外は非表示
  • スクロールリスナーが progress = scrolledIntoStage / scrollableHeight を計算(0〜1にクランプ)
  • idx = floor(progress * (N - 1)) — 該当フレームに .active クラスを切り替え
  • リスナーを requestAnimationFrame でラップして60fpsを維持

デザインルール

  • プロジェクトが YUV.AIブランド(Yuval本人、彼のポートフォリオ、彼のブランド)の場合: yuv-design-system を呼び出し、メディアに応じてモードを固定:
    • ネオンモード(YUV.AIウェブのDEFAULT): ホットピンク(#FF1464)+ ネオンシアン(#00E5FF)+ 白またはリッチブラックのキャンバス。Anton + Inter(英語)/ Rubik + Assistant(ヘブライ語)。半径0pxまたは999px
    • ウォームエディトリアルモード: Hope、Marcus、bigcats.ai、practical.yuv.ai のみ — ピンク + イエロー + ボーンカラー、オフホワイト(純粋な #fff は避ける)
    • ランディングページにDecksモード(Fly Highの紫/黄)は絶対に使用しない — そのパレットはスライドデッキ専用
  • プロジェクトが YUV.AIブランドでない場合: yuv-design-system は適用しない。ソース動画の雰囲気に合ったパレットを選択。Anton + Inter は合理的なデフォルトだが必須ではない
  • ヒーローのオーバーレイは控えめに — ビネットと大きな見出し1つのみ。フレームを埋め尽くさない
  • ヒーロー下のセクション: 明るいキャンバス(ネオンモードでは白、ウォームエディトリアルではオフホワイト、汎用ウォームの場合はボーンカラー)、大きなAnton見出し、18〜22pxのInter本文、CTAはシャープなピル型(border-radius: 999px)。ネオンモードではピンク塗り、それ以外ではブランドに適した色
  • ヘブライ語の場合: RTLを尊重、見出しにはRubik 900、本文にはAssistant 400/500を使用

ファイル参照

ファイル目的
references/extract-frames.pyffmpegベースのフレーム抽出ツール。オプションで1回で完全なHTMLをビルド
references/landing-template.htmlスクロールメカニズムを備えた自己完結型ランディングページのスケルトン
references/design-notes.mdタイポグラフィ、パレット、モーションのデフォルト

Individual skills in this repo

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

muhammedadnank/Antigravity-Skills

Build a premium cinematic landing page with mouse-scrub video hero and brand-driven narrative-arc sections. Use whenever the user provides a hero video plus a product / subject / brand and wants a landing page, promo site, product showcase, marketing page, or storytelling site. Works for any language and any subject. The signature effect is mouse-driven video scrubbing \u2014 the hero video lives across the entire page as a fixed backdrop, and moving the mouse left-right scrubs the video timeline so the subject responds to the cursor. Below the hero, 4-5 fully-opaque sections each carry their own brand identity (color, typography emphasis, layout pattern) and walk the viewer through a narrative arc (e.g. longing -> joy -> nostalgia -> contemplation -> action). Do NOT use for parallax frame-scrub landings where the page itself doesn't scroll (use parallax-landing-page instead) or for video editing / captioning workflows (use video-edit).

muhammedadnank/Antigravity-Skills

Generates high-converting Next.js/React landing pages with Tailwind CSS. Uses PAS, AIDA, and BAB frameworks for optimized copy/components (Heroes, Features, Pricing). Focuses on Core Web Vitals/SEO.

muhammedadnank/Antigravity-Skills

Build a scroll-driven cinematic landing page from a short video. The user provides a 5–15 second video (often AI-generated); this skill extracts every frame at HD JPEG quality, then produces a single-hero HTML page where the user's scroll gesture scrubs the frames in place (the page itself never scrolls) and 5 dramatic text overlays crossfade in/out — Google Anton headlines, Caveat handwritten accents, locked body, virtual scroll. Use this skill whenever the user wants to "turn this video into a landing page", "make a scroll-scrub landing page", "build a parallax hero from this clip", "add a new landing page to the parasites showcase", "do the same as github/lion/hope for this new video", or any variant that pairs a short clip with dramatic scroll-triggered storytelling. Trigger even if the user only says "use my video for a landing page" — that is this skill.

muhammedadnank/Antigravity-Skills

Best practices for Remotion - Video creation in React

muhammedadnank/Antigravity-Skills

Writes complete, structured landing pages optimized for SEO ranking, AEO citation, and visitor conversion. Activate when the user wants to write or generate a landing page for a product, service, or offer.

関連スキル