Scale In
blaze-motion/scale-inFreeComponent
Soft 0.95 → 1 grow + fade on a straight ease tween, never a spring.
Install it
npx shadcn@latest add https://motion.asmitsah.dev/r/scale-in.jsonSource
1"use client";23import * as m from "motion/react-m";4import type { CSSProperties, ReactNode } from "react";5import { revealTransition, scaleIn, viewportOnce } from "@/lib/motion";67type ScaleInProps = {8 children: ReactNode;9 className?: string;10 style?: CSSProperties;11 delay?: number;12 trigger?: "inView" | "mount";13};1415/** Soft 0.95 → 1 grow + fade — a straight ease tween, never a spring. */16export function ScaleIn({17 children,18 className,19 style,20 delay = 0,21 trigger = "inView",22}: ScaleInProps) {23 const play =24 trigger === "mount"25 ? ({ animate: scaleIn.animate } as const)26 : ({ whileInView: scaleIn.animate, viewport: viewportOnce } as const);2728 return (29 <m.div30 className={className}31 style={style}32 initial={scaleIn.initial}33 {...play}34 transition={{ ...revealTransition, delay }}35 >36 {children}37 </m.div>38 );39}
What it pulls in
npm packages
Other registry items
Files it writes
More from blaze-motion
All 19 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Cinematic Imagecinematic-image | blaze-motion | Components | Free | 1 dep | |
| Clip Revealclip-reveal | blaze-motion | Components | Free | 1 dep | |
| Fadefade | blaze-motion | Components | Free | 1 dep | |
| Grayscale Revealgrayscale-reveal | blaze-motion | Components | Free | 1 dep | |
| Grow from Origingrow-from-origin | blaze-motion | Components | Free | 1 dep | |
| Inset Frame Revealinset-frame-reveal | blaze-motion | Components | Free | 1 dep | |
| Line Revealline-reveal | blaze-motion | Components | Free | 1 dep | |
| Mask Text Revealmask-text-reveal | blaze-motion | Components | Free | 1 dep |
