Home > @magiclane/maps-sdk > GemAnimation

GemAnimation class

Animation helper class.

Signature:

export declare class GemAnimation 

Constructors

Constructor

Modifiers

Description

(constructor)({ type, duration, onCompleted, }, input)

Constructs a new instance of the GemAnimation class

Properties

Property

Modifiers

Type

Description

duration

number

onCompleted?

() => void

(Optional)

type

AnimationType

Methods

Method

Modifiers

Description

fromJson(json)

static

linear(duration)

static

Create an animation with linear type.

none()

static

Create an animation with no animation type.

toJson()