Skip to content

IAnimated

Defined in: mixins/animated.ts:18

Interface for animated entities.

Properties

onAnimationComplete

onAnimationComplete: Signal<(entity) => void>

Defined in: mixins/animated.ts:21


onAnimationStart

onAnimationStart: Signal<(entity) => void>

Defined in: mixins/animated.ts:19


onAnimationUpdate

onAnimationUpdate: Signal<(entity) => void>

Defined in: mixins/animated.ts:20

Methods

animate()

animate(animationProps, instance?): Tween

Defined in: mixins/animated.ts:23

Parameters

animationProps

GSAPAnimationConfigExtended

instance?

any

Returns

Tween


animateFrom()

animateFrom(animationProps, instance?): Tween

Defined in: mixins/animated.ts:25

Parameters

animationProps

GSAPAnimationConfigExtended

instance?

any

Returns

Tween


animateFromTo()

animateFromTo(fromProps, toProps, instance?): Tween

Defined in: mixins/animated.ts:27

Parameters

fromProps

GSAPAnimationConfigExtended

toProps

GSAPAnimationConfigExtended

instance?

any

Returns

Tween


animateSequence()

animateSequence(sequences, instance?): Timeline

Defined in: mixins/animated.ts:33

Parameters

sequences

GSAPAnimationConfigExtended[]

instance?

any

Returns

Timeline


bob()

bob(config?, instance?): Tween

Defined in: mixins/animated.ts:50

Parameters

config?
duration

number

intensity

number

instance?

any

Returns

Tween


destroyAnimations()

destroyAnimations(): void

Defined in: mixins/animated.ts:39

Returns

void


isAnimationPlaying()

isAnimationPlaying(): boolean

Defined in: mixins/animated.ts:43

Returns

boolean


pauseAnimations()

pauseAnimations(): void

Defined in: mixins/animated.ts:35

Returns

void


pulse()

pulse(config?, instance?): Tween

Defined in: mixins/animated.ts:48

Parameters

config?
duration

number

intensity

number

times

number

instance?

any

Returns

Tween


resumeAnimations()

resumeAnimations(): void

Defined in: mixins/animated.ts:37

Returns

void


reverseAnimation()

reverseAnimation(): void

Defined in: mixins/animated.ts:41

Returns

void


shake()

shake(config?, instance?): Tween

Defined in: mixins/animated.ts:46

Parameters

config?
duration

number

intensity

number

times

number

instance?

any

Returns

Tween