@twick/timeline / Exports / ElementAnimation
Class: ElementAnimation
Table of contents
Constructors
Properties
Methods
- getAnimate
- getDirection
- getIntensity
- getInterval
- getMode
- getName
- setAnimate
- setDirection
- setIntensity
- setInterval
- setMode
- toJSON
- fromJSON
Constructors
constructor
• new ElementAnimation(name): ElementAnimation
Parameters
| Name | Type |
|---|---|
name | string |
Returns
Defined in
packages/timeline/src/core/addOns/animation.ts:11
Properties
animate
• Private Optional animate: "enter" | "exit" | "both"
Defined in
packages/timeline/src/core/addOns/animation.ts:7
direction
• Private Optional direction: "left" | "center" | "right" | "up" | "down"
Defined in
packages/timeline/src/core/addOns/animation.ts:9
intensity
• Private Optional intensity: number
Defined in
packages/timeline/src/core/addOns/animation.ts:6
interval
• Private Optional interval: number
Defined in
packages/timeline/src/core/addOns/animation.ts:5
mode
• Private Optional mode: "in" | "out"
Defined in
packages/timeline/src/core/addOns/animation.ts:8
name
• Private name: string
Defined in
packages/timeline/src/core/addOns/animation.ts:4
Methods
getAnimate
▸ getAnimate(): undefined | "enter" | "exit" | "both"
Returns
undefined | "enter" | "exit" | "both"
Defined in
packages/timeline/src/core/addOns/animation.ts:27
getDirection
▸ getDirection(): undefined | "left" | "center" | "right" | "up" | "down"
Returns
undefined | "left" | "center" | "right" | "up" | "down"
Defined in
packages/timeline/src/core/addOns/animation.ts:35
getIntensity
▸ getIntensity(): undefined | number
Returns
undefined | number
Defined in
packages/timeline/src/core/addOns/animation.ts:23
getInterval
▸ getInterval(): undefined | number
Returns
undefined | number
Defined in
packages/timeline/src/core/addOns/animation.ts:19
getMode
▸ getMode(): undefined | "in" | "out"
Returns
undefined | "in" | "out"
Defined in
packages/timeline/src/core/addOns/animation.ts:31
getName
▸ getName(): string
Returns
string
Defined in
packages/timeline/src/core/addOns/animation.ts:15
setAnimate
▸ setAnimate(animate?): ElementAnimation
Parameters
| Name | Type |
|---|---|
animate? | "enter" | "exit" | "both" |
Returns
Defined in
packages/timeline/src/core/addOns/animation.ts:49
setDirection
▸ setDirection(direction?): ElementAnimation
Parameters
| Name | Type |
|---|---|
direction? | "left" | "center" | "right" | "up" | "down" |
Returns
Defined in
packages/timeline/src/core/addOns/animation.ts:59
setIntensity
▸ setIntensity(intensity?): ElementAnimation
Parameters
| Name | Type |
|---|---|
intensity? | number |
Returns
Defined in
packages/timeline/src/core/addOns/animation.ts:44
setInterval
▸ setInterval(interval?): ElementAnimation
Parameters
| Name | Type |
|---|---|
interval? | number |
Returns
Defined in
packages/timeline/src/core/addOns/animation.ts:39
setMode
▸ setMode(mode?): ElementAnimation
Parameters
| Name | Type |
|---|---|
mode? | "in" | "out" |
Returns
Defined in
packages/timeline/src/core/addOns/animation.ts:54
toJSON
▸ toJSON(): Animation
Returns
Defined in
packages/timeline/src/core/addOns/animation.ts:64
fromJSON
▸ fromJSON(json): ElementAnimation
Parameters
| Name | Type |
|---|---|
json | Animation |