// Type definitions for Bounce.js v0.8.2 // Project: https://github.com/tictail/bounce.js // Definitions by: Cherry // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 /// export default Bounce interface Point2D { x: number y: number } interface BounceOptions { from: T to: T duration?: number delay?: number easing?: string bounces?: number stiffness?: number } interface AnimationOptions { loop?: boolean remove?: boolean onComplete?: () => void } interface SerailizedComponent { type: string from: T to: T duration: number delay: number easing: string bounces: number stiffness: number } declare class Bounce { static FPS: number static counter: number static isSupported(): boolean constructor(); scale(options: BounceOptions): Bounce rotate(options: BounceOptions): Bounce translate(options: BounceOptions): Bounce skew(options: BounceOptions): Bounce serialize(): SerailizedComponent[] deserialize(serailized: SerailizedComponent[]): Bounce applyTo(element: Element, options?: AnimationOptions): void applyTo(elements: Element[], options?: AnimationOptions): void applyTo(elements: JQuery, options?: AnimationOptions): JQueryPromise define(name: string): Bounce remove(): void }