scale-in
remotionui/scale-inFreeComponent
Grow into place from just under full size, with an optional spring and exit
Live preview
live · rendered by the registry
Rendered by remotionui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://remotionui.com/r/scale-in.jsonSource
1import { interpolate } from "remotion";2import {3 resolveOrigin,4 useEnterExit,5 type MotionPrimitiveProps,6 type TransformOrigin,7} from "@/remotion/lib/motion-primitive";8import { MotionWrapper } from "@/remotion/lib/motion-wrapper";910export type ScaleInProps = MotionPrimitiveProps & {11 /** Scale at the start of the entrance. */12 from?: number;13 /** Corner or edge the scale grows out of. */14 origin?: TransformOrigin;15};1617/**18 * Grows into place from just under full size.19 *20 * `from` stays close to 1 on purpose: a card scaling up from 0.5 reads as a21 * zoom, which is a camera move, not an arrival. Anything below ~0.85 wants a22 * spring behind it — pass `spring` to get one.23 */24export const ScaleIn: React.FC<ScaleInProps> = ({25 children,26 from = 0.92,27 origin = "center",28 block,29 style,30 className,31 ...motionProps32}) => {33 const { motion, opacity } = useEnterExit(motionProps);34 const scale = interpolate(motion, [0, 1], [from, 1]);3536 return (37 <MotionWrapper38 block={block}39 className={className}40 style={{41 ...style,42 opacity,43 scale,44 transformOrigin: resolveOrigin(origin),45 }}46 >47 {children}48 </MotionWrapper>49 );50};
More from remotionui
All 127 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| audio-pulseaudio-pulse | remotionui | Components | Free | no deps | |
| audiogram-barsaudiogram-bars | remotionui | Components | Free | no deps | |
| blur-focus-inblur-focus-in | remotionui | Components | Free | no deps | |
| blur-inblur-in | remotionui | Components | Free | no deps | |
| blur-revealblur-reveal | remotionui | Components | Free | no deps | |
| caption-highlightcaption-highlight | remotionui | Components | Free | no deps | |
| chromatic-aberration-wipechromatic-aberration-wipe | remotionui | Components | Free | no deps | |
| confetti-burstconfetti-burst | remotionui | Components | Free | no deps |
