Skip to content

feat(scene): add --lottie overlay support to vibe scene add#212

Open
Metbcy wants to merge 3 commits into
vericontext:mainfrom
Metbcy:feat/scene-add-lottie
Open

feat(scene): add --lottie overlay support to vibe scene add#212
Metbcy wants to merge 3 commits into
vericontext:mainfrom
Metbcy:feat/scene-add-lottie

Conversation

@Metbcy
Copy link
Copy Markdown
Contributor

@Metbcy Metbcy commented May 9, 2026

What

Adds Lottie animation overlay support to vibe scene add, closing the "scene helper" milestone of #208.

New CLI flags

Flag Description Default
--lottie <path> Path to a .json or .lottie animation file -
--lottie-position <pos> full, center, top-left, top-right, bottom-left, bottom-right full
--lottie-scale <n> Scale factor (0.01-2) 1
--lottie-opacity <n> Opacity (0-1) 1
--lottie-no-loop Play once instead of looping loops by default

How it works

  1. The Lottie file is copied into assets/lottie-<scene-id>.<ext>
  2. A <dotlottie-wc> web component (loaded from CDN) is layered on top of whatever preset is selected
  3. Position/scale/opacity vocabulary mirrors vibe edit motion-overlay so behavior is consistent across both paths

Example

vibe scene add "intro" \
  --lottie assets/logo-spin.json \
  --lottie-position center \
  --lottie-scale 0.5 \
  --lottie-opacity 0.8

Files changed

  • packages/cli/src/commands/_shared/scene-html-emit.ts: New types (LottiePosition, LottieOverlayInput), overlay style builder, <dotlottie-wc> markup emitter, wired into emitSceneHtml()
  • packages/cli/src/commands/scene.ts: CLI flags, validation, asset copy, result surface

Refs #208

Wire --lottie <path>, --lottie-position, --lottie-scale,
--lottie-opacity, and --lottie-no-loop flags into the scene add
command. When supplied, the Lottie file is copied into assets/ and a
<dotlottie-wc> web component is layered on top of the selected
preset's content.

Position/scale/opacity vocabulary mirrors vibe edit motion-overlay
so users and agents get consistent behavior across both paths.

Closes vericontext#208 (scene helper milestone).
@vercel
Copy link
Copy Markdown

vercel Bot commented May 9, 2026

@Metbcy is attempting to deploy a commit to the Kiyeon Jeon's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant