Transitions
Small, essential UI transitions, written from scratch for sher.md
Every card here is a sher.md original: an independent, clean-room implementation of an effect named in the transitions.dev library, built only from its name and visible behaviour. None of transitions.dev's code is included. For their official versions (including Pro), use transitions.dev. Each component is a single file in components/transitions/<slug>.tsx using motion or plain CSS, and respects reduced motion where it animates continuously.
Feedback · 10
Notification badge
sher.md originalBadge slides in diagonally with a spring pop.
import { NotificationBadge } from "@/components/transitions/notification-badge";Confetti burst
sher.md originalConfetti arcs up and lands on the button.
import { ConfettiBurst } from "@/components/transitions/confetti-burst";Icon swap
sher.md originalIcons swap with scale and blur.
import { IconSwap } from "@/components/transitions/icon-swap";Success check
sher.md originalCircle rotates and un-blurs, tick draws on.
import { SuccessCheck } from "@/components/transitions/success-check";Error state shake
sher.md originalInvalid input shakes, then reverts.
Please enter a valid email.
import { ErrorStateShake } from "@/components/transitions/error-state-shake";Toast open/close
sher.md originalToast rises with fade, blur and scale.
import { ToastOpenClose } from "@/components/transitions/toast-open-close";Checkbox check
sher.md originalTick draws on as a stroke.
import { CheckboxCheck } from "@/components/transitions/checkbox-check";Toggle
sher.md originalThumb slides with a double bounce.
import { Toggle } from "@/components/transitions/toggle";Delete with smoky dissolve
sher.md originalImage shreds, falls and blurs into smoke.
import { DeleteWithSmokyDissolve } from "@/components/transitions/delete-with-smoky-dissolve";Menus & overlays · 7
Modal open/close
sher.md originalDialog scales in over a fading scrim.
import { ModalOpenClose } from "@/components/transitions/modal-open-close";Panel reveal
sher.md originalSide panel slides in, content trails it.
import { PanelReveal } from "@/components/transitions/panel-reveal";Tabs sliding
sher.md originalPill indicator glides to the active tab.
import { TabsSliding } from "@/components/transitions/tabs-sliding";Tooltip open/close
sher.md originalDelayed first open, travels between items, instant close.
import { TooltipOpenClose } from "@/components/transitions/tooltip-open-close";Text · 4
Text states swap
sher.md originalStatus text swaps with a vertical blur.
import { TextStatesSwap } from "@/components/transitions/text-states-swap";Input clear with dissolve
sher.md originalCleared words dissolve one by one.
import { InputClearWithDissolve } from "@/components/transitions/input-clear-with-dissolve";Texts reveal
sher.md originalTwo lines rise from a clip, staggered.
import { TextsReveal } from "@/components/transitions/texts-reveal";Pro gradient text
sher.md originalColour washes orbit within the letters.
import { ProGradientText } from "@/components/transitions/pro-gradient-text";Loaders & AI · 9
Skeleton loader and reveal
sher.md originalPulsing skeleton cross-fades to content.
import { SkeletonLoaderAndReveal } from "@/components/transitions/skeleton-loader-and-reveal";Shimmer text
sher.md originalGradient highlight sweeps across text.
import { ShimmerText } from "@/components/transitions/shimmer-text";Organic shimmer
sher.md originalPer-letter wave shimmer with a soft glow.
import { OrganicShimmer } from "@/components/transitions/organic-shimmer";Spinner to check morph
sher.md originalSpinner pops into a drawn check.
Build demo page
8 subtasks
import { SpinnerToCheckMorph } from "@/components/transitions/spinner-to-check-morph";Thinking states
sher.md originalShimmering status line cycles steps.
import { ThinkingStates } from "@/components/transitions/thinking-states";Reasoning stream
sher.md originalReasoning scrolls by in a two-line window.
Two things could explain the lag: the blur re-runs every frame,
or the mask is forcing a repaint. Worth separating them first.
Animating mask-position never composites — it repaints the element.
That element sits inside a filter chain, so the filter re-runs too.
So the fix isn't tuning the radius; the property must leave paint.
Translate a same-coloured curtain instead — transforms composite.
import { ReasoningStream } from "@/components/transitions/reasoning-stream";Streaming text
sher.md originalWords resolve from blur as they stream.
import { StreamingText } from "@/components/transitions/streaming-text";Matrix dot loader
sher.md original4×4 dot grid pulses in four patterns.
import { MatrixDotLoader } from "@/components/transitions/matrix-dot-loader";Image generation placeholder
sher.md originalDot noise wakes, then resolves into the image.
import { ImageGenerationPlaceholder } from "@/components/transitions/image-generation-placeholder";Hover & pointer · 6
Avatar group hover
sher.md originalHovered avatar lifts, neighbours follow with falloff.
import { AvatarGroupHover } from "@/components/transitions/avatar-group-hover";Card stack hover
sher.md originalStacked cards fan out with a spring.
import { CardStackHover } from "@/components/transitions/card-stack-hover";Drag & drop with physics
sher.md originalDrop zone swells and morphs into the image.
it here
import { DragDropWithPhysics } from "@/components/transitions/drag-drop-with-physics";3D tilt
sher.md originalCard tilts toward the pointer with glare.
4111 - 1111 - 1111 - 1111
John Smith
import { Tilt3D } from "@/components/transitions/3d-tilt";Learn more hover
sher.md originalChevron shifts and grows a stem on hover.
import { LearnMoreHover } from "@/components/transitions/learn-more-hover";Numbers & counters · 2
Number pop-in
sher.md originalDigits flip in with blur, staggered.
import { NumberPopIn } from "@/components/transitions/number-pop-in";Spinning counter
sher.md originalDigits spin like reels to the value.
import { SpinningCounter } from "@/components/transitions/spinning-counter";Layout & surfaces · 5
Card resize
sher.md originalCard height springs to fit new content.
Order summary
3 items · $65.78
import { CardResize } from "@/components/transitions/card-resize";Page side-by-side
sher.md originalDirectional forward/back page push.
Choose token
import { PageSideBySide } from "@/components/transitions/page-side-by-side";Accordion
sher.md originalgrid-rows height animation with chevron rotate.
An accordion that animates height with a CSS grid-rows transition.
Going from 0fr to 1fr animates to the content's natural height without measuring it.
Each header is a button with aria-expanded, and motion is skipped when reduced motion is on.
import { Accordion } from "@/components/transitions/accordion";Image open tilt
sher.md originalThumbnail zooms open with a 3D tilt.
import { ImageOpenTilt } from "@/components/transitions/image-open-tilt";