forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
velocity-animate.d.ts
52 lines (45 loc) · 1.95 KB
/
velocity-animate.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Type definitions for Velocity 0.0.22
// Project: http://velocityjs.org/
// Definitions by: Greg Smith <https://github.com/smrq/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts" />
interface JQuery {
velocity(options: {properties: Object; options: jquery.velocity.VelocityOptions}): JQuery;
velocity(properties: Object, options: jquery.velocity.VelocityOptions): JQuery;
velocity(properties: Object, duration?: number, easing?: string, complete?: jquery.velocity.ElementCallback): JQuery;
velocity(properties: Object, duration?: number, easing?: number[], complete?: jquery.velocity.ElementCallback): JQuery;
velocity(properties: Object, duration?: number, complete?: jquery.velocity.ElementCallback): JQuery;
velocity(properties: Object, easing?: string, complete?: jquery.velocity.ElementCallback): JQuery;
velocity(properties: Object, easing?: number[], complete?: jquery.velocity.ElementCallback): JQuery;
velocity(properties: Object, complete?: jquery.velocity.ElementCallback): JQuery;
}
interface JQueryStatic {
Velocity: jquery.velocity.VelocityStatic;
}
declare module jquery.velocity {
interface ElementCallback {
(elements: NodeListOf<HTMLElement>): void;
}
interface ProgressCallback {
(elements: NodeListOf<HTMLElement>, percentComplete: number, timeRemaining: number, timeStart: number): void;
}
interface VelocityStatic {
Sequences: any;
animate(options: {elements: NodeListOf<HTMLElement>; properties: Object; options: VelocityOptions}): void;
animate(elements: NodeListOf<HTMLElement>, properties: Object, options: VelocityOptions): void;
animate(element: HTMLElement, properties: Object, options: VelocityOptions): void;
}
interface VelocityOptions {
queue?: any;
duration?: any;
easing?: any;
begin?: ElementCallback;
complete?: ElementCallback;
progress?: ProgressCallback;
display?: any;
loop?: any;
delay?: any;
mobileHA?: boolean;
_cacheValues?: boolean;
}
}