Update velocity-animate.d.ts

add hook functions (http://julian.com/research/velocity/#hook)
This commit is contained in:
Chabardes
2015-07-16 17:12:01 +02:00
parent 69303fd9e5
commit 2bab2df828
+10
View File
@@ -34,6 +34,16 @@ declare module jquery.velocity {
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;
/**
* Get a hook value. Hooks are the subvalues of multi-value CSS properties.
* It features the same API as $.css().
*/
hook(element: HTMLElement|JQuery, cssKey: string): string;
/**
* Set a hook value. Hooks are the subvalues of multi-value CSS properties.
* It features the same API as $.css().
*/
hook(element: HTMLElement|JQuery, cssKey: string, cssValue: string): void;
}
interface VelocityOptions {