RemotionUI

Rotate In

Swing into place in plane, or hinged in depth on the x or y axis.

PrimitivePrimitives

rotate-in30fps · 960×540
Install
$ npx remotion-ui@latest add rotate-in

Rotates from degrees to 0 while a small scale change ties the two into one gesture.

axis="x" and axis="y" hinge in depth under perspective, which is how a card or a panel should arrive; z is the in-plane spin for badges and marks.

Agent notes

Install first, then import the copied source component locally. AI guide →

Import
@/remotion/primitives/rotate-in
  • Use when: frame-level motion primitives and reusable animation wrappers.
  • Customize: durationInFrames, delayInFrames, spring, exit, plus copied source for timing, layout, colors, and typography.
  • Rule: do not import this component from the remotion-ui npm package; it is copied into your project.

Usage

Example
import { RotateIn } from "@/remotion/primitives/rotate-in"; <RotateIn axis="x" degrees={-24} origin="bottom"> <div>Hinge into place</div> </RotateIn>

API Reference

PropTypeDescription
children*ReactNodeContent to animate.
durationInFramesnumberLength of the enter animation in frames.
delayInFramesnumberFrames to wait before the animation starts.
spring"smooth" | "snappy" | "bouncy" | Partial<SpringConfig> | booleanDrive the entrance with a spring instead of the ease-out curve.
exitbooleanAnimate back out, landing on the last frame of the surrounding Sequence.
exitInFramesnumberLength of the exit. Exits are shorter than entrances.
exitAtInFramesnumberFrame the exit starts on, overriding the end-of-window timing.
exitTravelnumberShare of the enter distance the exit travels.
exitDirection"reverse" | "continue"reverse leaves the way it came in, continue carries on through.
blockbooleanFill the parent's width instead of shrink-wrapping the child.
styleCSSPropertiesStyles merged onto the wrapper.
degreesnumberAngle it starts at. Negative tilts anticlockwise.
axis"z" | "x" | "y"z spins in plane; x and y hinge in depth.
perspectivenumberDepth of the 3D projection for the x and y axes.
scaleFromnumberScale at the start — a rotation that also grows reads as one gesture.
originTransformOriginPoint the rotation pivots around.

Related