Light Spotlight Render

vibe-motion/skills/light-spotlight-render

作者 vibe-motion4c86c0d016a3ba22ee673428a494f3c44f84111f无许可证收录于 2026年10月9日更新于 2026年10月9日

Generate a swinging spotlight text-reveal HTML animation with configurable text, swing angle, lamp scale, glow, and colors. Use when users ask for 聚光灯扫字动画, spotlight text reveal, light logo reveal, 发光文字揭示动画, or want a reusable HTML animation instead of a static image.

包含脚本Design & Creative
AI 生成的概览

生成一个独立的 HTML 动画,用摆动的聚光灯揭示文字,文字、摆动、灯罩缩放、光晕和颜色均可配置。

功能
接收标签文字、摆动角度与周期、灯罩缩放、光晕不透明度、遮罩与文字颜色、背景颜色以及视频尺寸等动画参数,并将经过清理的取值填入内置的 HTML 模板。它运行一个 Python 脚本,生成包含 SVG 聚光灯动画的自包含 HTML 文件,并打印最终的绝对路径。默认输出文件名由标签文字推导得出,也可以要求透明背景。
适用场景
当用户需要聚光灯扫字动画、发光标志揭示动画,或希望得到可复用的 HTML 动画而非静态图片时使用。适合需要在浏览器中预览的发光文字揭示效果。
运行要求
需要 Python 3 来运行随附脚本 scripts/render_light_spotlight.py,以及随附模板资源 assets/light_spotlight_template.html。该技能附带可执行脚本,会把 HTML 文件写入指定的输出路径;未说明需要凭据或网络访问。

Light Spotlight Render

Workflow

  1. Collect the animation parameters:
    • label_text
    • swing_angle_degrees
    • swing_cycle_seconds
    • lamp_scale
    • glow_opacity
    • mask_color
    • text_color
    • background_color
    • video_width
    • video_height
    • optional output
  2. Resolve the installed skill directory and run scripts/render_light_spotlight.py.
  3. Return the final absolute HTML path printed by the script.

Command

bash
python3 scripts/render_light_spotlight.py \  --label-text "vibe-motion" \  --output "out/light-spotlight-vibe-motion.html"

Installed Skill Resolution

Use the installed skill copy, not the source repo checkout:

bash
skill_dir=""for base in "${AGENTS_HOME:-$HOME/.agents}" "${CLAUDE_HOME:-$HOME/.claude}" "${CODEX_HOME:-$HOME/.codex}"; do  if [ -d "$base/skills/light-spotlight-render" ]; then    skill_dir="$base/skills/light-spotlight-render"    break  fidone[ -n "$skill_dir" ] || { echo "light-spotlight-render skill not found under ~/.agents, ~/.claude, or ~/.codex"; exit 1; }
python3 "$skill_dir/scripts/render_light_spotlight.py" \  --label-text "vibe-motion" \  --output "$(pwd)/out/light-spotlight-vibe-motion.html"

Behavior

  • Read assets/light_spotlight_template.html.
  • Replace template placeholders with sanitized parameter values.
  • Keep the SVG spotlight animation self-contained in one HTML file.
  • Default output name is derived from label_text.
  • Preserve the top-vertex lamp scale pivot so the spotlight grows from the lamp tip rather than the swing axis.
  • Allow background_color=transparent for transparent-background workflows.

Output

  • Primary output: a standalone .html animation file.
  • Tell the user to open the HTML file in a browser to preview the animation.
  • If the user wants video output after generating the HTML, suggest rendering it with another tool or browser capture flow rather than rewriting the skill.

来源与署名

来源:vibe-motion/skills位于light-spotlight-render提交4c86c0d

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架