Scroll Video Website 标志

Scroll Video Website

社区
musoyangrigor
scroll-video-website

将用户提供的视频制作成 Apple 风格的滚动驱动网站,支持流畅的 Canvas 视频逐帧控制、优化后的 WebP 帧序列、渐进式加载和响应式动态效果。适用于电影感产品展示、落地页、滚动叙事、图像序列动画和滚动控制视频;也可优化生成的帧素材。

Add to TypingMind

概览

发布者musoyangrigor
代码仓库scroll-video-website-skill
技能名称scroll-video-website
星标数
67
复刻数
6
附带文件
2
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 2 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 musoyangrigor 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Scroll Video Website AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/musoyangrigor/scroll-video-website-skill/tree/main/scroll-video-website
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/musoyangrigor/scroll-video-website-skill.git /tmp/scroll-video-website-skill
mkdir -p .claude/skills
cp -r /tmp/scroll-video-website-skill/scroll-video-website .claude/skills/scroll-video-website
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Scroll Video Website,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Scroll Video Website。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Scroll Video Website 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Scroll Video Website

When to use

Use this skill when the user wants to:

  • build an Apple-style scroll animation from a video;
  • create a scroll-controlled or scroll-scrubbed video website;
  • turn a product video into a cinematic landing page;
  • build a scrollytelling experience driven by video;
  • convert video into an optimized image sequence for scroll animation;
  • create a Canvas-based product reveal controlled by scrolling;
  • optimize an existing generated scroll-video frame sequence.

Do not use it for ordinary autoplay video backgrounds or unrelated scroll effects.

Create a minimal full-page experience like a product animation viewer: the page itself supplies scroll distance while a fixed canvas fills the viewport and scrubs a frame sequence derived from the user's video. The animation is the interface, not a background behind a conventional landing page.

Invocation

This skill has two modes: build a scroll-video website from a video, or optimize an existing frame sequence. If the first argument is optimize, follow references/optimize.md and do not run the build workflow below.

Treat this concise form as a complete build request:

text
$scroll-video-website <path/to/video.mp4>

The video path must be the first argument after the skill name. Everything after the path is optional user direction for styling, layout, copy, or behavior:

text
$scroll-video-website ./media/product-reveal.mp4
$scroll-video-website ./media/product-reveal.mp4 use a black background and condensed typography

The first example means: derive the frame sequence and build the full default scroll-animation website described below. In the second, preserve the same video-driven animation architecture while following the added visual direction. Let the agent using this skill interpret and implement the rest of the prompt; this skill does not define a separate command grammar for style options.

Interpret the video path as relative to the current working directory unless it is absolute. If it contains spaces, the user should quote it. Check the exact path first. If a bare filename is not there, search the current project for an exact filename match while excluding dependency, build, cache, and VCS directories. Continue automatically when exactly one match exists. If there are no matches or multiple matches, ask the user for the precise path. Braces in <path/to/video.mp4> or {video_path} indicate a placeholder and are not part of the actual path. Do not require or interpret a use keyword.

Optimize an existing sequence with exactly:

text
$scroll-video-website optimize

The optimize command takes no path or other arguments. Inspect the current project for generated frame sequences. Continue when exactly one sequence is identifiable. If several are identifiable, show them and ask which one to optimize. If no sequence can be found or confidently recognized, tell the user that the frames folder was not found and stop.

Establish the project and source video

Before editing:

  1. Inspect the project structure, scripts, framework, styling, routing, asset conventions, and local instructions.
  2. Locate the user-supplied video using the invocation rules above. If no video or path was supplied and none can be confidently identified, ask for it before implementing.
  3. Reuse the existing working stack. Do not scaffold a replacement project when one already works.
  4. Inspect the video's dimensions, duration, frame rate, frame count, and file size with ffprobe when available.
  5. Preserve unrelated behavior and make the smallest coherent set of changes needed.

Do not create substitute artwork or replace the supplied footage. Avoid duplicating the source video unless the build requires it.

Convert the video to a frame sequence

The default rendering path is a numbered WebP frame sequence, not video.currentTime. Extract frames into the project's public/static asset area with zero-padded names such as frames/frame_0001.webp.

  • Preserve the source cadence up to 30 fps. For a long clip, sample it to roughly 240–300 total frames so the payload remains practical.
  • Preserve the source aspect ratio. Use a sensible WebP quality around 78–82 and inspect the result rather than assuming the setting is adequate.
  • Record the actual extracted frame count in the implementation; do not leave a guessed constant.
  • Prefer ffmpeg for extraction. A representative command is ffmpeg -i input.mp4 -vf fps=30 -c:v libwebp -quality 80 frames/frame_%04d.webp; adapt the input, fps, output path, and existing project tooling.
  • Do not delete or overwrite unrelated assets. If the destination already contains a sequence, verify that it belongs to this animation before replacing it.

Use direct paused-video seeking only when frame extraction is unavailable or the resulting frame payload is clearly unsuitable. If falling back, explain the tradeoff and retain the same fixed-stage, bidirectional, smoothed scroll behavior.

Match the reference experience

When the user gives no additional layout or copy direction, produce a canvas-only page:

  • a white page and fixed, overflow-hidden stage covering 100vw by 100vh;
  • enough invisible document height for a deliberate scrub, approximately 400vh for an 8-second or roughly 240-frame source;
  • no navbar, cards, headings, calls to action, gradients, or invented marketing copy;
  • a canvas that fills the stage and draws each frame with cover geometry, centered on both axes;
  • a short opacity reveal only after the first frame is ready, preventing a blank-frame flash;
  • restrained image treatment only when it suits the footage, such as a white backdrop, a slight contrast adjustment, or mix-blend-mode: multiply for a white-background product render.

If the user asks for content, keep it sparse and place it over or between intentional moments in the animation without reducing the canvas's visual dominance. Do not introduce an animation dependency when native canvas and browser APIs are sufficient.

Implement canvas scrubbing

Use a fixed or sticky stage containing an aria-hidden canvas. Size its backing buffer for device pixel ratio, capped around 2, while keeping drawing measurements in CSS pixels. Reset the canvas transform before applying a new DPR scale on resize so scaling does not accumulate.

Map clamped total-page progress to the complete sequence:

js
const range = document.documentElement.scrollHeight - innerHeight
const progress = range > 0 ? Math.min(1, Math.max(0, scrollY / range)) : 0
targetFrame = progress * (frameCount - 1)

Scrolling forward must advance the animation and reverse scrolling must reverse it. Scroll and resize handlers should only update cheap measurements or the target. Run a single requestAnimationFrame loop and smooth a floating-point playhead with frame-rate-independent exponential interpolation:

js
const dt = Math.min((now - lastTime) / 1000, 0.1)
const alpha = 1 - Math.exp(-dt * 9)
currentFrame += (targetFrame - currentFrame) * alpha

Draw the integer frame on each side of the playhead and crossfade the next frame by the fractional remainder. Clear or paint the canvas background first, reset globalAlpha after drawing, and redraw on resize.

Load frames progressively

Do not block first paint on the entire sequence:

  1. Load frame 1 first, draw it, and reveal the canvas.
  2. Queue evenly distributed frames across the timeline, for example every eighth frame, so seeking has a nearby fallback early.
  3. Queue every remaining frame.

Track requested frames separately from loaded frames so the priority and remainder passes never request the same image twice. While a requested frame is still loading, draw the nearest loaded frame. Handle failed image loads without stalling the rest of the sequence.

Use an asset URL strategy that works with the project's base path and deployment target. Clean up scroll, resize, media-query listeners, observers, and animation frames when the owning component unmounts.

Responsive behavior and accessibility

Keep cover rendering on narrow screens and accept deliberate cropping; do not distort the imagery. Check important subject placement at desktop and mobile sizes. Account for mobile viewport changes and safe areas if visible content is added.

For prefers-reduced-motion: reduce, stop scrubbing and hold the first suitable frame. Keep any page content accessible and do not hijack scrolling. The decorative canvas should not create redundant screen-reader content.

Verify the result

Run the project's checks and inspect the result in a browser when available. Confirm:

  • the first and last scroll positions reach the first and last extracted frames;
  • forward and reverse scrolling feel continuous, with no abrupt jumps, playback, flashing, or visible blank canvas;
  • frame requests are not duplicated and missing or slow frames use a nearby loaded fallback;
  • cover cropping, DPR resizing, and canvas scaling work at desktop and mobile sizes;
  • reduced motion holds a static frame and component cleanup is complete;
  • the generated sequence has the expected count, dimensions, ordering, and acceptable total size;
  • unrelated project behavior still works.

Finish by summarizing the experience, the extracted frame count and payload, checks run, and any remaining source-media limitation.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Scroll Video Website AI 技能有什么作用?

将用户提供的视频制作成 Apple 风格的滚动驱动网站,支持流畅的 Canvas 视频逐帧控制、优化后的 WebP 帧序列、渐进式加载和响应式动态效果。适用于电影感产品展示、落地页、滚动叙事、图像序列动画和滚动控制视频;也可优化生成的帧素材。

为什么在 TypingMind 中使用 Scroll Video Website?

因为您只需安装一次,就能搭配任何模型使用。Scroll Video Website 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Scroll Video Website?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/musoyangrigor/scroll-video-website-skill/tree/main/scroll-video-website。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Scroll Video Website?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Scroll Video Website 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Scroll Video Website 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Scroll Video Website AI 技能免费吗?

是的。musoyangrigor 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇