Skip to content
Documentation/API reference

Search documentation

Type to search the documentation.

Reference

API reference

73 public symbols generated from the TypeScript declarations of the library.

73 public symbols generated from the TypeScript declarations of the library.

Directives

Name Summary
MoveAnimateDirective Plays an entrance when the element is created and, inside movePresence, a leave before it is removed — the one-attribute [move] / [moveAnimate] shorthand.
MoveAnimationDirective Framer Motion-style state animation: give it initial, animate and optional exit states, and it animates to animate whenever the bound object changes.
MoveDragDirective Makes the element draggable with pointer events, with optional axis lock, constraints, snap points and momentum.
MoveEnterDirective Plays a preset or keyframes once, when the element is created.
MoveFocusDirective Plays while the element has keyboard focus and reverses when focus leaves.
MoveHoverDirective Plays while a hover-capable pointer is over the element, and reverses when it leaves.
MoveInViewDirective Plays when the element scrolls into view, once or every time, using an IntersectionObserver.
MoveLayoutDirective Animates the element from its previous position and size to its new layout (FLIP), including shared-element transitions by moveLayoutId.
MoveLeaveDirective Plays a preset or keyframes before the element is removed; inside movePresence the view waits for it to finish.
MoveLoopDirective Repeats a preset or keyframes — endlessly or a set number of times, restarting or reversing each cycle.
MoveParallaxDirective Moves the element at a different speed from the scroll, deriving the travel from its size and the viewport.
MovePresenceDirective Structural directive that keeps its view mounted until every registered leave animation inside it has finished.
MovePresenceForDirective Keyed-list counterpart to movePresence.
MoveScrollDirective Scrubs keyframes with scroll position between two offsets, and exposes the progress as a signal.
MoveSmoothScrollDirective Directive that enables smooth scrolling on a specific scrollable container.
MoveStaggerDirective Gives each animated child a delay from its DOM order, from the first, last or centre child, so lists cascade without index bookkeeping.
MoveTapDirective Plays while the element is pressed with a pointer and reverses on release — press feedback that also works on touch, where there is no hover.
MoveTargetDirective Plays keyframes or a preset on its host when the bound boolean turns true, and plays them in reverse when it turns false.
MoveTextDirective Splits the host's text content into animated spans/words.
MoveTriggerDirective Plays keyframes on its host when a boolean flips to true, and resets when it flips back — the declarative trigger side of moveTarget/moveTrigger.
MoveVariantsDirective Animates between named states: bind moveVariant to a signal and the element animates whenever the name changes.

Services

Name Summary
MoveAnimator The supported way to animate from TypeScript — sequencing phases, reacting to a server response, driving a node the template does not own, View Transitions.
SmoothScrollService SmoothScrollService — Lenis-inspired smooth scroll for Angular.

Functions

Name Summary
moveIconBounce Returns keyframes for a subtle bounce animation on an icon.
moveIconPulse Returns keyframes for a subtle pulse animation on an icon.
moveIconRotate Returns keyframes for a subtle rotate animation on an icon.
moveIconShake Returns keyframes for a subtle shake animation on an icon.
movePathDraw Returns keyframes for a path-drawing animation.
moveSpringValue Creates a signal that follows a source signal with spring physics, for values that should settle instead of jump.
moveTimeToMs Converts a MoveTime to milliseconds: moveTimeToMs('0.08s') === 80, moveTimeToMs(80) === 80.
moveTransform Derives a signal by mapping another signal's value from one range onto another (clamped by default), like Framer Motion's useTransform.
moveValue Creates a writable signal meant to drive motion, to bind into animation inputs or derive with moveTransform.
provideMovement Sets library-wide animation defaults.

Interfaces

Name Summary
AnimationControls The universal handle every animation returns, whether it comes from a directive internally or from MoveAnimator.animate().
MoveAnimateOptions Options for one imperative animation — the same vocabulary MoveTriggerDirective.play() takes.
MoveAnimationConfig Stable API — covered by semantic-versioning guarantees.
MoveDragEvent Experimental API — may change significantly between minor versions.
MoveDragSnapPoint Experimental API — may change significantly between minor versions.
MoveKeyframeProperties Stable API — covered by semantic-versioning guarantees.
MoveKeyframeState Stable API — covered by semantic-versioning guarantees.
MovePresenceForContext Stable API — covered by semantic-versioning guarantees.
MovePresetDefinition Stable API — covered by semantic-versioning guarantees.
MovePropertyTransition Stable API — covered by semantic-versioning guarantees.
MoveRepeatOptions Stable API — covered by semantic-versioning guarantees.
MoveSpring Stable API — covered by semantic-versioning guarantees.
MoveSpringValueConfig Stable API — covered by semantic-versioning guarantees.
MoveTransformOptions Stable API — covered by semantic-versioning guarantees.
MovementConfig The resolved, library-wide animation defaults — what MOVEMENT_CONFIG injects.

Types

Name Summary
MoveAnimationTarget Anything MoveAnimator can animate: an element, or the ElementRef a viewChild() already gives you.
MoveDragAxis Experimental API — may change significantly between minor versions.
MoveDragConstraints Experimental API — may change significantly between minor versions.
MoveKeyframes Stable API — covered by semantic-versioning guarantees.
MovePresenceForMode 'sync' — entering and leaving items animate at the same time.
MovePresenceForTrackBy Stable API — covered by semantic-versioning guarantees.
MovePreset Named animation presets.
MoveRepeatType 'loop' restarts from the first keyframe each cycle.
MoveStaggerDirection Stable API — covered by semantic-versioning guarantees.
MoveStateValue Stable API — covered by semantic-versioning guarantees.
MoveTime A duration or delay.
MoveTransformValue Stable API — covered by semantic-versioning guarantees.
MoveTransitionConfig Stable API — covered by semantic-versioning guarantees.
MoveValue Stable API — covered by semantic-versioning guarantees.
MoveValuePair Stable API — covered by semantic-versioning guarantees.
MoveVariant Stable API — covered by semantic-versioning guarantees.
MoveVariantOrchestration 'beforeChildren' plays the parent first and offsets its children by the parent's duration.
MoveVariantState Stable API — covered by semantic-versioning guarantees.
MovementConfigInput What provideMovement() accepts: any subset of MovementConfig, with duration and delay taking a MoveTime (320, '320ms', '0.32s').

Constants

Name Summary
MOVEMENT_CONFIG Injection token for the resolved library-wide defaults; override them with provideMovement(config).
MOVEMENT_DEFAULTS The built-in timing defaults (duration, easing, delay) used when nothing is configured.
MOVEMENT_DIRECTIVES All directives the library ships (every MOVEMENT_STABLE_DIRECTIVES plus every MOVEMENT_EXPERIMENTAL_DIRECTIVES member), ready to spread into a standalone compo…
MOVEMENT_EXPERIMENTAL_DIRECTIVES Every experimental directive — may change or be removed in any 1.x minor.
MOVEMENT_STABLE_DIRECTIVES Every stable directive — none of these change behavior or shape outside a major version.
MOVE_PRESETS