Communitygithub.com

muhammedadnank/Antigravity-Skills

将任意视频转化为电影级滚动驱动着陆页——如同 Apple 产品页,滚动即前进视频帧。

Antigravity-Skills 是什么?

该技能可从用户提供的视频文件中提取均匀分布的帧(默认 80 帧,根据时长动态调整),并生成一个自包含的 HTML 页面。页面采用粘性 Hero 区域,通过 JS 滚动监听实时切换可见帧,实现类似 Apple 产品页或 GitHub Copilot 着陆页的逐帧滚动效果。技能支持 YUV.AI 品牌项目(默认应用霓虹模式:粉色/青色/白色)和通用项目(根据视频氛围自动选色)。输出包含 `index.html` 和 `frames/` 文件夹,可直接部署到 Vercel、Netlify 或 Cloudflare Pages 等静态托管平台,无需额外构建步骤。主要适用于 Cursor、Claude Code 等 AI 编码代理场景。

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

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

视频 → 滚动驱动着陆页

构建一个电影感着陆页,其中 Hero 区域不再是按时间播放视频,而是随滚动播放——就像 Apple 产品页面或 GitHub Copilot 着陆页那样。从源视频中提取帧,并在用户滚动时切换显示;粘性 Hero 区域下方是正常滚动的文案和行动号召区域。

何时调用

  • 用户提供视频并请求着陆页、滚动网站、滚动帧 Hero 或从视频生成网站
  • 提到“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 和最大宽度 1920(如果源视频分辨率更大则缩小)。
  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。如果页面总大小超过 12 MB,则将质量降低到 75 或减少帧数。
  7. 预览 —— 在输出目录内执行 python -m http.server,然后打开 http://localhost:8000。在性能较好的机器上滚动体验非常流畅。
  8. 部署 —— 将文件夹拖放到 Vercel/Netlify/Cloudflare Pages 上。无需构建步骤。

滚动机制

  • 外部滚动容器 .scroll-stage 高度设置为视口单位(默认 600vh = 滚动 5 屏以遍历所有帧)。
  • 粘性 Hero 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 网页的默认模式):亮粉色 (#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 仍然是合理的默认选择,但不是强制要求。
  • Hero 叠加元素应微妙 —— 一点点渐晕和一行大标题;不要淹没画面。
  • Hero 下方区块:浅色画布(霓虹模式下为白色,暖色编辑模式下为米白色,通用暖色风格则用骨白),大号 Anton 标题,正文用 Inter 18–22px,行动号召按钮为锐利药丸形状(border-radius: 999px)—— 霓虹模式下使用粉色填充,其他情况使用品牌色。
  • 希伯来语:遵循 RTL,标题使用 Rubik 900,正文使用 Assistant 400/500。

文件引用

文件用途
references/extract-frames.py基于 ffmpeg 的帧提取器;可选地一次性构建完整 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.

相关技能