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 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271
|
declare class TweenMax { data: any;
target: any; readonly timeline: any; vars: any;
defaultEase : Ease; defaultOverwrite : string; onOverwrite : Function; selector:any; ticker : Object;
constructor(target: Object, duration: Number, vars: Object);
static to(target: Object, duration: Number, vars: Object): TweenMax;
static from(target: Object, duration: Number, vars: Object): TweenMax
static fromTo( target:Object, duration:Number, fromVars:Object, toVars:Object ) : TweenMax;
static staggerTo( targets:any[], duration:Number, vars:Object, stagger:Number, onCompleteAll:Function, onCompleteAllParams:any[], onCompleteAllScope:any ) : any[];
static staggerFrom( targets:any[], duration:Number, vars:Object, stagger:Number, onCompleteAll:Function, onCompleteAllParams:any[], onCompleteAllScope:any ) : any[];
static staggerFromTo( targets:any[], duration:Number, fromVars:Object, toVars:Object, stagger:Number, onCompleteAll:Function, onCompleteAllParams:any[], onCompleteAllScope:any ) : any[];
static delayedCall( delay:Number, callback:Function, params:any[], scope:any, useFrames:Boolean) : TweenMax;
static getTweensOf( target:Object, onlyActive:Boolean ):any ;
static getAllTweens( includeTimelines:Boolean ) : any[];
static killDelayedCallsTo( callback:Function ) :any;
static killTweensOf( target:Object, vars?:Object ) :any;
static killAll( complete:Boolean, tweens:Boolean, delayedCalls:Boolean, timelines:Boolean ) :any;
static killChildTweensOf( parent:Object, complete:Boolean ) :any;
static pauseAll( tweens:Boolean, delayedCalls:Boolean, timelines:Boolean ):any;
static resumeAll( tweens:Boolean, delayedCalls:Boolean, timelines:Boolean ):any ;
static set( target:Object, vars:Object ) : TweenMax;
isActive(): Boolean;
delay(value?: Number): any;
duration(value: Number): any;
eventCallback(type: String, callback?: Function, params?: Array<any>, scope?: any): any;
endTime(includeRepeats: Boolean): Number;
invalidate():TweenMax;
kill(vars?: any, target?: any): any;
pause(atTime: any, suppressEvents: Boolean): any;
paused(value: Boolean): any;
play(from: any, suppressEvents: Boolean): any;
progress(value: Number, suppressEvents: Boolean): any;
restart(includeDelay?: Boolean, suppressEvents?: Boolean): any;
resume(from?: any, suppressEvents?: Boolean): any;
reverse(from?: any, suppressEvents?: Boolean): any;
reversed(value?: Boolean): any;
repeat(value: Number): any;
repeatDelay(value: Number): any;
seek(time: any, suppressEvents?: Boolean): any;
startTime(value: Number): any;
time(value: Number): any;
timeScale(value: Number): any;
totalDuration(value: Number): any;
totalProgress(value: Number, suppressEvents: Boolean): any;
totalTime(time: Number, suppressEvents: Boolean): any;
updateTo(vars: object, resetDuration?: Boolean): any; }
declare class Ease { constructor(func?: (...args: any[]) => void, extraParams?: any[], type?: number, power?: number);
getRatio(p: number): number; }
interface EaseLookup { find(name: string): Ease; }
declare class Back extends Ease { static easeIn: Back; static easeInOut: Back; static easeOut: Back;
config(overshoot: number): Elastic; }
declare class Bounce extends Ease { static easeIn: Bounce; static easeInOut: Bounce; static easeOut: Bounce; }
declare class Circ extends Ease { static easeIn: Circ; static easeInOut: Circ; static easeOut: Circ; }
declare class Cubic extends Ease { static easeIn: Cubic; static easeInOut: Cubic; static easeOut: Cubic; }
declare class Elastic extends Ease { static easeIn: Elastic; static easeInOut: Elastic; static easeOut: Elastic;
config(amplitude: number, period: number): Elastic; }
declare class Expo extends Ease { static easeIn: Expo; static easeInOut: Expo; static easeOut: Expo; }
declare class Linear extends Ease { static ease: Linear; static easeIn: Linear; static easeInOut: Linear; static easeNone: Linear; static easeOut: Linear; }
declare class Quad extends Ease { static easeIn: Quad; static easeInOut: Quad; static easeOut: Quad; }
declare class Quart extends Ease { static easeIn: Quart; static easeInOut: Quart; static easeOut: Quart; }
declare class Quint extends Ease { static easeIn: Quint; static easeInOut: Quint; static easeOut: Quint; }
declare class Sine extends Ease { static easeIn: Sine; static easeInOut: Sine; static easeOut: Sine; }
declare class SlowMo extends Ease { static ease: SlowMo;
config(linearRatio: number, power: number, yoyoMode: boolean): SlowMo; }
declare class SteppedEase extends Ease { constructor(staps: number);
config(steps: number): SteppedEase; }
interface RoughEaseConfig { clamp?: boolean; points?: number; randomize?: boolean; strength?: number; taper?: "in" | "out" | "both" | "none"; template?: Ease; }
declare class RoughEase extends Ease { static ease: RoughEase;
constructor(vars: RoughEaseConfig);
config(steps?: number): RoughEase; }
declare const Power0: typeof Linear; declare const Power1: typeof Quad; declare const Power2: typeof Cubic; declare const Power3: typeof Quart; declare const Power4: typeof Quint; declare const Strong: typeof Quint;
|