Skip to content
angulux
@anguless/angulux/motion

motion

2 declarations
import
import { MotionModule } from '@anguless/angulux/motion';

No demos for this module yet. The API reference below is complete: it comes from the corpus, which covers every module the library ships.

API

Generated from the committed corpus, which check:corpus holds to the built library.

Motion

componentagl-motion

Motion component is a container to apply motion effects to its content.

InputTypeDefaultDescription
visiblebooleannot documentedWhether the element is visible or not.
mountOnEnterbooleannot documentedWhether to mount the element on enter.
unmountOnLeavebooleannot documentedWhether to unmount the element on leave.
nameMotionOptions['name']not documentedThe name of the motion. It can be a predefined motion name or a custom one. phases: [name]-enter [name]-enter-active [name]-enter-to [name]-leave [name]-leave-active [name]-leave-to
typeMotionOptions['type']not documentedThe type of the motion, valid values 'transition' and 'animation'.
safeMotionOptions['safe']not documentedWhether the motion is safe.
disabledMotionOptions['disabled']not documentedWhether the motion is disabled.
appearMotionOptions['appear']not documentedWhether the motion should appear.
enterMotionOptions['enter']not documentedWhether the motion should enter.
leaveMotionOptions['leave']not documentedWhether the motion should leave.
durationMotionOptions['duration']not documentedThe duration of the motion.
hideStrategy'display' | 'visibility'not documentedThe hide strategy of the motion, valid values 'display' and 'visibility'.
enterFromClassClassNameOptions['from']not documentedThe enter from class of the motion.
enterToClassClassNameOptions['to']not documentedThe enter to class of the motion.
enterActiveClassClassNameOptions['active']not documentedThe enter active class of the motion.
leaveFromClassClassNameOptions['from']not documentedThe leave from class of the motion.
leaveToClassClassNameOptions['to']not documentedThe leave to class of the motion.
leaveActiveClassClassNameOptions['active']not documentedThe leave active class of the motion.
optionsMotionOptionsnot documentedThe motion options.
OutputTypeDescription
onBeforeEnterMotionEvent | undefinedCallback fired before the enter transition/animation starts.
onEnterMotionEvent | undefinedCallback fired when the enter transition/animation starts.
onAfterEnterMotionEvent | undefinedCallback fired after the enter transition/animation ends.
onEnterCancelledMotionEvent | undefinedCallback fired when the enter transition/animation is cancelled.
onBeforeLeaveMotionEvent | undefinedCallback fired before the leave transition/animation starts.
onLeaveMotionEvent | undefinedCallback fired when the leave transition/animation starts.
onAfterLeaveMotionEvent | undefinedCallback fired after the leave transition/animation ends.
onLeaveCancelledMotionEvent | undefinedCallback fired when the leave transition/animation is cancelled.

Inherited from BaseComponent

inherited
InputTypeDefaultDescription
dtObject | undefined undefined Defines scoped design tokens of the component.
unstyledboolean | undefined undefined Indicates whether the component should be rendered without styles.
ptPT | undefined undefined Used to pass attributes to DOM elements inside the component. TRUSTED INPUT ONLY. Whatever you put here is applied to the DOM as given: keys become attributes, and a key that names a DOM property is assigned to that property directly, with no sanitizer in between. That is what makes the API useful, and it means a value reaching it from a user, a database or a CMS can execute script. Treat it like markup you wrote yourself, not like data you received.
ptOptionsPassThroughOptions | undefined undefined Used to configure passthrough(pt) options of the component.

MotionDirective

directive[aglMotion]

Motion Directive is directive to apply motion effects to elements.

InputTypeDefaultDescription
aglMotion
property visible
booleannot documentedWhether the element is visible or not.
aglMotionName
property name
MotionOptions['name']not documentedThe name of the motion. It can be a predefined motion name or a custom one. phases: [name]-enter [name]-enter-active [name]-enter-to [name]-leave [name]-leave-active [name]-leave-to
aglMotionType
property type
MotionOptions['type']not documentedThe type of the motion, valid values 'transition' and 'animation'.
aglMotionSafe
property safe
MotionOptions['safe']not documentedWhether the motion is safe.
aglMotionDisabled
property disabled
MotionOptions['disabled']not documentedWhether the motion is disabled.
aglMotionAppear
property appear
MotionOptions['appear']not documentedWhether the motion should appear.
aglMotionEnter
property enter
MotionOptions['enter']not documentedWhether the motion should enter.
aglMotionLeave
property leave
MotionOptions['leave']not documentedWhether the motion should leave.
aglMotionDuration
property duration
MotionOptions['duration']not documentedThe duration of the motion.
aglMotionHideStrategy
property hideStrategy
'display' | 'visibility'not documentedThe hide strategy of the motion, valid values 'display' and 'visibility'.
aglMotionEnterFromClass
property enterFromClass
ClassNameOptions['from']not documentedThe enter from class of the motion.
aglMotionEnterToClass
property enterToClass
ClassNameOptions['to']not documentedThe enter to class of the motion.
aglMotionEnterActiveClass
property enterActiveClass
ClassNameOptions['active']not documentedThe enter active class of the motion.
aglMotionLeaveFromClass
property leaveFromClass
ClassNameOptions['from']not documentedThe leave from class of the motion.
aglMotionLeaveToClass
property leaveToClass
ClassNameOptions['to']not documentedThe leave to class of the motion.
aglMotionLeaveActiveClass
property leaveActiveClass
ClassNameOptions['active']not documentedThe leave active class of the motion.
aglMotionOptions
property options
MotionOptionsnot documentedThe motion options.
OutputTypeDescription
aglMotionOnBeforeEnter
property onBeforeEnter
MotionEvent | undefinedCallback fired before the enter transition/animation starts.
aglMotionOnEnter
property onEnter
MotionEvent | undefinedCallback fired when the enter transition/animation starts.
aglMotionOnAfterEnter
property onAfterEnter
MotionEvent | undefinedCallback fired after the enter transition/animation ends.
aglMotionOnEnterCancelled
property onEnterCancelled
MotionEvent | undefinedCallback fired when the enter transition/animation is cancelled.
aglMotionOnBeforeLeave
property onBeforeLeave
MotionEvent | undefinedCallback fired before the leave transition/animation starts.
aglMotionOnLeave
property onLeave
MotionEvent | undefinedCallback fired when the leave transition/animation starts.
aglMotionOnAfterLeave
property onAfterLeave
MotionEvent | undefinedCallback fired after the leave transition/animation ends.
aglMotionOnLeaveCancelled
property onLeaveCancelled
MotionEvent | undefinedCallback fired when the leave transition/animation is cancelled.

Inherited from BaseComponent

inherited
InputTypeDefaultDescription
dtObject | undefined undefined Defines scoped design tokens of the component.
unstyledboolean | undefined undefined Indicates whether the component should be rendered without styles.
ptPT | undefined undefined Used to pass attributes to DOM elements inside the component. TRUSTED INPUT ONLY. Whatever you put here is applied to the DOM as given: keys become attributes, and a key that names a DOM property is assigned to that property directly, with no sanitizer in between. That is what makes the API useful, and it means a value reaching it from a user, a database or a CMS can execute script. Treat it like markup you wrote yourself, not like data you received.
ptOptionsPassThroughOptions | undefined undefined Used to configure passthrough(pt) options of the component.