Communitygithub.com

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

提供された動画からフレームを抽出し、Apple製品ページやGitHub Copilotランディングのような、スクロールに連動して動画のフレームが切り替わるシネマティックなランディングページを生成します。

ビデオ → スクロール駆動ランディングページ とは?

このスキルは、ユーザーが提供した動画ファイルを、Apple製品ページやGitHub Copilotランディングのように、スクロールに応じてフレームが切り替わる没入型のランディングページに変換します。主な仕組みは、ffmpegを使用して動画から等間隔にフレームを抽出し、スティッキーヒーローとスクロールイベントリスナーを持つ自己完結型のHTMLページを生成することです。スクロールするとフレームが切り替わり、動画が時間ではなくスクロールで再生されるような効果を実現します。フレーム数は動画の長さに基づいて自動調整(40~160)され、ページサイズが最適化されます。YUV.AIプロジェクトの場合はNeonモード(ピンク/シアン/ホワイト)のデザインシステムが適用され、それ以外のプロジェクトでは動画の雰囲気に合わせたパレットが選択されます。出力は `index.html` と `frames/` ディレクトリを含むフォルダとなり、Vercel、Netlify、Cloudflare Pagesなどの静的ホストにそのままデプロイできます。ヘブライ語コンテンツにも対応しており、RTLレイアウトと適切なフォントが適用されます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/hoodini/ai-agents-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で長さ、フレームレート、解像度、音声を確認。
  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 を呼び出し、メディアに応じてモードを固定:
    • Neonモード(YUV.AI Webのデフォルト): ホットピンク (#FF1464) + ネオンシアン (#00E5FF) + ホワイトまたはリッチブラックのキャンバス。フォントはAnton + Inter(英語)/ Rubik + Assistant(ヘブライ語)。角丸は0pxまたは999px。
    • ウォームエディトリアルモード: Hope、Marcus、bigcats.ai、practical.yuv.ai のみ — ピンク + イエロー + ボーン、オフホワイト(純粋な #fff は不可)。
    • ランディングページにDecksモード(フライハイのパープル/イエロー)は絶対に使用しない — そのパレットはスライドデッキ専用です。
  • プロジェクトがYUV.AIブランドでない場合: yuv-design-system は適用しません。ソース動画の雰囲気に合ったパレットを選びます。Anton + Interは妥当なデフォルトですが必須ではありません。
  • ヒーローのオーバーレイは控えめに — ビネットと大きな見出し1つのみ。フレームを埋め尽くさないように。
  • ヒーロー下のセクション: 明るいキャンバス(Neonモードでは白、ウォームエディトリアルモードではオフホワイト、一般的なウォーム系ならボーン)、大きなAnton見出し、Inter 18〜22pxの本文、CTAはシャープなピル型(border-radius: 999px)— Neonモードではピンク塗り、それ以外はブランドに適した色。
  • ヘブライ語の場合: RTLを尊重し、見出しにはRubik 900、本文にはAssistant 400/500を使用。

ファイル参照

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

Individual skills in this repo

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

hoodini/ai-agents-skills

Edit any selfie or screen-share footage into a viral short-form video in YUV.AI's signature style — Apple-style liquid-glass cards (real CSS backdrop-filter), dark-mode polish, MrBeast-paced cuts, video-title karaoke captions, premium GSAP motion graphics, no fake content, never covering the speaker's face. Hebrew is rendered in Rubik Black, English in Anton uppercase. Always renders BOTH 9:16 and 16:9 and always saves with _V<N> suffix for backups. Trigger when the user drops a path to an .mp4/.mov/.mkv and says "edit this", "make it viral", "turn this into a short", or any Hebrew equivalent (ערוך סרטון, סרטון ויראלי, להפוך לוויראלי, ריל, שורט). The pipeline is the COMBINATION of two skills: video-use (transcription + word-snapped cuts + base extraction) and hyperframes (HTML/CSS/GSAP visual composition + render). Do NOT use for podcast-only audio edits.

hoodini/ai-agents-skills

Yuval Avidani's YUV.AI brand and design system. Apply ONLY when YUV.AI-branded output is requested — presentations, decks, keynotes, portfolio, brand site, profile, speaker bio, brand assets, or any prompt mentioning YUV.AI / "my brand" / "my deck" / "my site" / "for me". Do NOT auto-trigger on generic "build a game / web app / dashboard / landing page" without YUV.AI context — those use whatever palette fits. Three modes; NEON (hot pink #FF1464 + neon cyan #00E5FF + white, DEFAULT for YUV.AI web, apps, games, dashboards, social, general visual work); DECKS (Fly High purple/yellow/grey, presentations and slides ONLY); Warm Editorial (pink/yellow/bone for Hope, Marcus, bigcats.ai, practical.yuv.ai). Universal Fly High throughline across all modes; flight/progress motifs (HUD strips, dials, "Let's Fly High" tagline, phoenix mark). Anton + Inter (EN), Rubik + Assistant (HE), letter-spacing 0 default. Bundled brand assets, canonical socials, credentials. Project brand wins if specified.

hoodini/ai-agents-skills

Yuval's all-in-one AI video pipeline. Turns an idea/script into a finished, on-brand MP4 by orchestrating HyperFrames (HTML→deterministic video render), Lottie (branded motion graphics), ManimCE (math / neural-network / concept animations), and a transcribe→approve caption flow — all wrapped in the YUV.AI Neon Phoenix brand via a frame.md. Use whenever Yuval wants to make, edit, or explain something as a video: promo, explainer, launch, social reel, "make a video about X", "explain X as a video", "neural network animation", "turn this into a video", captioned tutorial, 16:9 or 9:16. Triggers: video, explainer, promo, reel, manim, lottie, hyperframes, animation, "make a video", "explain ... as a video", מצגת וידאו, סרטון, הסבר וידאו. Routes each beat to the right engine, wraps in brand, self-verifies, and renders.

hoodini/ai-agents-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 (RTL or LTR — Hebrew, English, Arabic, Spanish, French, Japanese, etc.) and any subject (food, tech, animals, fashion, services, SaaS, wildlife campaigns, music releases, books, real estate). The signature effect is mouse-driven video scrubbing — 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). Triggers on phrases like "build a landing page from this video", "cinematic landing ...

hoodini/ai-agents-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.

hoodini/ai-agents-skills

Edit any video into a captioned showcase — transcribe (any language, defaults to large-v3), present a transcript_review.txt for the user to fix mishears BEFORE rendering, then build a HyperFrames composition with liquid-glass caption pills, liquid blob background, liquid morph wipes, optional behind-subject text via background removal, and render the final video. Use whenever the user provides a video file and asks to edit it, caption it, add subtitles, fix existing captions, make a reel/promo/captioned tutorial, or "do the same" pattern as a prior captioned video. Supports English, Hebrew, and any Whisper-supported language. **Renders both 16:9 (YouTube / horizontal) and 9:16 (TikTok / Instagram Reels / YouTube Shorts) from the SAME 16:9 source** — vertical mode uses a centered footage strip with a blurred backdrop + liquid blobs and a vertical-tuned caption pill, no need to re-shoot. THE PIPELINE PAUSES FOR USER APPROVAL on the transcript before final render — this is the support mechanism for getting ca...

hoodini/github-trending

Fetch and display GitHub trending repositories and developers. Use when building dashboards showing trending repos, discovering popular projects, or tracking GitHub trends. Triggers on GitHub trending, trending repos, popular repositories, GitHub discover.

hoodini/mongodb

Work with MongoDB databases using best practices. Use when designing schemas, writing queries, building aggregation pipelines, or optimizing performance. Triggers on MongoDB, Mongoose, NoSQL, aggregation pipeline, document database, MongoDB Atlas.

hoodini/owasp-security

Implement secure coding practices following OWASP Top 10. Use when preventing security vulnerabilities, implementing authentication, securing APIs, or conducting security reviews. Triggers on OWASP, security, XSS, SQL injection, CSRF, authentication security, secure coding, vulnerability.

関連スキル