0.8.25 • Published 2 years ago
@types/bounce.js v0.8.25
Installation
npm install --save @types/bounce.js
Summary
This package contains type definitions for Bounce.js (https://github.com/tictail/bounce.js).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bounce.js.
index.d.ts
// Type definitions for Bounce.js v0.8.2
// Project: https://github.com/tictail/bounce.js
// Definitions by: Cherry <https://github.com/cherrry>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <reference types="jquery"/>
export default Bounce
interface Point2D {
x: number
y: number
}
interface BounceOptions<T> {
from: T
to: T
duration?: number | undefined
delay?: number | undefined
easing?: string | undefined
bounces?: number | undefined
stiffness?: number | undefined
}
interface AnimationOptions {
loop?: boolean | undefined
remove?: boolean | undefined
onComplete?: (() => void) | undefined
}
interface SerailizedComponent<T> {
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<Point2D>): Bounce
rotate(options: BounceOptions<number>): Bounce
translate(options: BounceOptions<Point2D>): Bounce
skew(options: BounceOptions<Point2D>): Bounce
serialize(): SerailizedComponent<number | Point2D>[]
deserialize(serailized: SerailizedComponent<number | Point2D>[]): Bounce
applyTo(element: Element, options?: AnimationOptions): void
applyTo(elements: Element[], options?: AnimationOptions): void
applyTo(elements: JQuery, options?: AnimationOptions): JQueryPromise<void>
define(name: string): Bounce
remove(): void
}
Additional Details
- Last updated: Thu, 08 Jul 2021 00:35:37 GMT
- Dependencies: @types/jquery
- Global values: none
Credits
These definitions were written by Cherry.
0.8.23
2 years ago
0.8.22
2 years ago
0.8.25
2 years ago
0.8.24
2 years ago
0.8.21
4 years ago
0.8.20
8 years ago
0.8.19
8 years ago
0.8.18
9 years ago
0.8.17
9 years ago
0.8.16-alpha
9 years ago
0.8.15-alpha
9 years ago
0.8.14-alpha
9 years ago
0.8.13-alpha
9 years ago
0.8.12-alpha
9 years ago
0.8.11-alpha
9 years ago
0.8.6-alpha
9 years ago
0.8.5-alpha
9 years ago