Skip to content

@remotion/gif: Add direct premounting to Gif - #9451

Merged
JonnyBurger merged 2 commits into
mainfrom
codex/add-gif-premounting
Jul 22, 2026
Merged

@remotion/gif: Add direct premounting to Gif#9451
JonnyBurger merged 2 commits into
mainfrom
codex/add-gif-premounting

Conversation

@JonnyBurger

@JonnyBurger JonnyBurger commented Jul 22, 2026

Copy link
Copy Markdown
Member

Summary

  • add direct premounting and postmounting support to <Gif>
  • hide and freeze GIF canvases outside their active range while exposing those ranges in Studio
  • document the new props and cover schema, styles, and timeline registration

Testing

  • bun test src/test/Gif.test.tsx in packages/gif
  • bunx turbo run make lint --filter='@remotion/gif'
  • bun run build
  • bun run stylecheck
  • bun render-cards.ts in packages/docs

Closes #9335

Related to #9331

Preview

@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
bugs Ready Ready Preview, Comment Jul 22, 2026 11:22am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
remotion Skipped Skipped Jul 22, 2026 11:22am

Request Review

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed changes — add premount/postmount support to the <Gif> component so GIF canvases can initialize early and stay frozen outside their active range, mirroring <CanvasImage>.

  • packages/gif/src/Gif.tsx — wires InteractivePremountProps, Internals.usePremounting, Freeze, and Sequence premount/postmount display props.
  • packages/gif/src/test/Gif.test.tsx — adds schema, visibility, style-override, and range-registration tests.
  • packages/docs/docs/gif/gif.mdx — documents premountFor, postmountFor, and the two style-override props.

Pullfrog  | View workflow run | Using Kimi K2 (free via Pullfrog for OSS) (Claude Opus not used — the program covers this model; add its provider key to run your pick) | 𝕏

@vercel
vercel Bot temporarily deployed to Preview – remotion July 22, 2026 11:22 Inactive
@JonnyBurger
JonnyBurger merged commit 0e35501 into main Jul 22, 2026
16 checks passed
@JonnyBurger
JonnyBurger deleted the codex/add-gif-premounting branch July 22, 2026 11:59
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.

@remotion/gif: Add direct premounting to <Gif>

1 participant