mirror of
https://github.com/duckietm/Nitro-Cool-UI-Renderer.git
synced 2025-06-21 23:16:58 +00:00
61 lines
974 B
TypeScript
61 lines
974 B
TypeScript
export class Motion
|
|
{
|
|
protected _target: HTMLElement;
|
|
protected _running: boolean;
|
|
protected _complete: boolean = true;
|
|
protected _tag: string;
|
|
|
|
constructor(target: HTMLElement)
|
|
{
|
|
this._target = target;
|
|
}
|
|
|
|
public get running(): boolean
|
|
{
|
|
return ((this._running) && (!!this._target));
|
|
}
|
|
|
|
public get complete(): boolean
|
|
{
|
|
return this._complete;
|
|
}
|
|
|
|
public set target(k: HTMLElement)
|
|
{
|
|
this._target = k;
|
|
}
|
|
|
|
public get target(): HTMLElement
|
|
{
|
|
return this._target;
|
|
}
|
|
|
|
public set tag(k: string)
|
|
{
|
|
this._tag = k;
|
|
}
|
|
|
|
public get tag(): string
|
|
{
|
|
return this._tag;
|
|
}
|
|
|
|
public start(): void
|
|
{
|
|
this._running = true;
|
|
}
|
|
|
|
public update(k: number): void
|
|
{
|
|
}
|
|
|
|
public stop(): void
|
|
{
|
|
this._target = null;
|
|
this._running = false;
|
|
}
|
|
|
|
public tick(k: number): void
|
|
{
|
|
}
|
|
} |