url-animations
Version:
Animations in your Browser URL Field
19 lines (18 loc) • 443 B
TypeScript
import BaseAnimation from './base';
interface State {
frameRate: number;
index: number;
frames: string[];
pastTimeStamp: number;
}
declare class Custom implements BaseAnimation {
name: string;
creator: string;
baseState: State;
constructor(frames?: string[], frameRate?: number);
nextState(timestamp: number, state: State): {
nextFrame: string;
state: State;
};
}
export default Custom;