forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jquery.transit.d.ts
36 lines (30 loc) · 1.34 KB
/
jquery.transit.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
// Type definitions for jQuery.transit.js 0.9.9
// Project: http://ricostacruz.com/jquery.transit/
// Definitions by: MrBigDog2U <https://github.com/MrBigDog2U>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts"/>
// Transit //////////////////////////////////////////////////
interface JQueryTransitOptions {
opacity?: number;
duration?: number;
delay?: number;
easing?: string;
complete?: () => void;
scale?: any;
}
////////////////////////////////////////////////////////////////////////////////////////////////////
interface JQuery {
transition(options: JQueryTransitOptions): JQuery;
transition(options: JQueryTransitOptions, duration: number): JQuery;
transition(options: JQueryTransitOptions, easing: string): JQuery;
transition(options: JQueryTransitOptions, duration: number, easing: string): JQuery;
transition(options: JQueryTransitOptions, complete: () => void): JQuery;
transition(options: JQueryTransitOptions, duration: number, easing: string, complete: () => void): JQuery;
/**
* Set one or more CSS properties for the set of matched elements.
*
* @param propertyName A CSS property name.
* @param value A value to set for the property.
*/
css(propertyName: string, value: number[]): JQuery;
}