@anguless/angulux/motion
Motion
2 declarationsmotion.md
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-motionMotion component is a container to apply motion effects to its content.
| Input | Type | Default | Description |
|---|---|---|---|
| visible | boolean | not documented | Whether the element is visible or not. |
| mount | boolean | not documented | Whether to mount the element on enter. |
| unmount | boolean | not documented | Whether to unmount the element on leave. |
| name | MotionOptions['name'] | not documented | The 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 |
| type | MotionOptions['type'] | not documented | The type of the motion, valid values 'transition' and 'animation'. |
| safe | MotionOptions['safe'] | not documented | Whether the motion is safe. |
| disabled | MotionOptions['disabled'] | not documented | Whether the motion is disabled. |
| appear | MotionOptions['appear'] | not documented | Whether the motion should appear. |
| enter | MotionOptions['enter'] | not documented | Whether the motion should enter. |
| leave | MotionOptions['leave'] | not documented | Whether the motion should leave. |
| duration | MotionOptions['duration'] | not documented | The duration of the motion. |
| hide | 'display' | 'visibility' | not documented | The hide strategy of the motion, valid values 'display' and 'visibility'. |
| enter | ClassNameOptions['from'] | not documented | The enter from class of the motion. |
| enter | ClassNameOptions['to'] | not documented | The enter to class of the motion. |
| enter | ClassNameOptions['active'] | not documented | The enter active class of the motion. |
| leave | ClassNameOptions['from'] | not documented | The leave from class of the motion. |
| leave | ClassNameOptions['to'] | not documented | The leave to class of the motion. |
| leave | ClassNameOptions['active'] | not documented | The leave active class of the motion. |
| options | MotionOptions | not documented | The motion options. |
| Output | Type | Description |
|---|---|---|
| on | MotionEvent | undefined | Callback fired before the enter transition/animation starts. |
| on | MotionEvent | undefined | Callback fired when the enter transition/animation starts. |
| on | MotionEvent | undefined | Callback fired after the enter transition/animation ends. |
| on | MotionEvent | undefined | Callback fired when the enter transition/animation is cancelled. |
| on | MotionEvent | undefined | Callback fired before the leave transition/animation starts. |
| on | MotionEvent | undefined | Callback fired when the leave transition/animation starts. |
| on | MotionEvent | undefined | Callback fired after the leave transition/animation ends. |
| on | MotionEvent | undefined | Callback fired when the leave transition/animation is cancelled. |
Inherited from BaseComponent
inherited| Input | Type | Default | Description |
|---|---|---|---|
| dt | Object | undefined | undefined | Defines scoped design tokens of the component. |
| unstyled | boolean | undefined | undefined | Indicates whether the component should be rendered without styles. |
| pt | PT | undefined | undefined | Used to pass attributes to DOM elements inside the component. Keys become attributes, and a key that names a DOM property is also assigned to that property. Values the browser would execute go through Angular's sanitizer first, as in a template binding: markup in `innerHTML`, `outerHTML` and `srcdoc`, and URLs in `href`, `src`, `action`, `formaction` and `xlink:href`. To write one of those unsanitized on purpose, pass a `DomSanitizer.bypassSecurityTrustHtml` or `bypassSecurityTrustUrl` value. An `on*` key must be a function, and any other value for it is ignored. Keys themselves are applied as given, so let data from users choose values, never keys. |
| pt | PassThroughOptions | undefined | undefined | Used to configure passthrough(pt) options of the component. |
MotionDirective
directive[aglMotion]Motion Directive is directive to apply motion effects to elements.
| Input | Type | Default | Description |
|---|---|---|---|
| agl property visible | boolean | not documented | Whether the element is visible or not. |
| agl property name | MotionOptions['name'] | not documented | The 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 |
| agl property type | MotionOptions['type'] | not documented | The type of the motion, valid values 'transition' and 'animation'. |
| agl property safe | MotionOptions['safe'] | not documented | Whether the motion is safe. |
| agl property disabled | MotionOptions['disabled'] | not documented | Whether the motion is disabled. |
| agl property appear | MotionOptions['appear'] | not documented | Whether the motion should appear. |
| agl property enter | MotionOptions['enter'] | not documented | Whether the motion should enter. |
| agl property leave | MotionOptions['leave'] | not documented | Whether the motion should leave. |
| agl property duration | MotionOptions['duration'] | not documented | The duration of the motion. |
| agl property hide | 'display' | 'visibility' | not documented | The hide strategy of the motion, valid values 'display' and 'visibility'. |
| agl property enter | ClassNameOptions['from'] | not documented | The enter from class of the motion. |
| agl property enter | ClassNameOptions['to'] | not documented | The enter to class of the motion. |
| agl property enter | ClassNameOptions['active'] | not documented | The enter active class of the motion. |
| agl property leave | ClassNameOptions['from'] | not documented | The leave from class of the motion. |
| agl property leave | ClassNameOptions['to'] | not documented | The leave to class of the motion. |
| agl property leave | ClassNameOptions['active'] | not documented | The leave active class of the motion. |
| agl property options | MotionOptions | not documented | The motion options. |
| Output | Type | Description |
|---|---|---|
| agl property on | MotionEvent | undefined | Callback fired before the enter transition/animation starts. |
| agl property on | MotionEvent | undefined | Callback fired when the enter transition/animation starts. |
| agl property on | MotionEvent | undefined | Callback fired after the enter transition/animation ends. |
| agl property on | MotionEvent | undefined | Callback fired when the enter transition/animation is cancelled. |
| agl property on | MotionEvent | undefined | Callback fired before the leave transition/animation starts. |
| agl property on | MotionEvent | undefined | Callback fired when the leave transition/animation starts. |
| agl property on | MotionEvent | undefined | Callback fired after the leave transition/animation ends. |
| agl property on | MotionEvent | undefined | Callback fired when the leave transition/animation is cancelled. |
Inherited from BaseComponent
inherited| Input | Type | Default | Description |
|---|---|---|---|
| dt | Object | undefined | undefined | Defines scoped design tokens of the component. |
| unstyled | boolean | undefined | undefined | Indicates whether the component should be rendered without styles. |
| pt | PT | undefined | undefined | Used to pass attributes to DOM elements inside the component. Keys become attributes, and a key that names a DOM property is also assigned to that property. Values the browser would execute go through Angular's sanitizer first, as in a template binding: markup in `innerHTML`, `outerHTML` and `srcdoc`, and URLs in `href`, `src`, `action`, `formaction` and `xlink:href`. To write one of those unsanitized on purpose, pass a `DomSanitizer.bypassSecurityTrustHtml` or `bypassSecurityTrustUrl` value. An `on*` key must be a function, and any other value for it is ignored. Keys themselves are applied as given, so let data from users choose values, never keys. |
| pt | PassThroughOptions | undefined | undefined | Used to configure passthrough(pt) options of the component. |