fluxo-animation 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +151 -0
- package/dist/index.cjs +1265 -0
- package/dist/index.d.cts +261 -0
- package/dist/index.d.ts +261 -0
- package/dist/index.global.js +1248 -0
- package/dist/index.js +1223 -0
- package/package.json +39 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
type EasingFunction = (t: number) => number;
|
|
2
|
+
declare const easings: {
|
|
3
|
+
none: (t: number) => number;
|
|
4
|
+
linear: (t: number) => number;
|
|
5
|
+
"slow.in": (t: number) => number;
|
|
6
|
+
"slow.out": (t: number) => number;
|
|
7
|
+
"slow.inOut": (t: number) => number;
|
|
8
|
+
"medium.in": (t: number) => number;
|
|
9
|
+
"medium.out": (t: number) => number;
|
|
10
|
+
"medium.inOut": (t: number) => number;
|
|
11
|
+
"fast.in": (t: number) => number;
|
|
12
|
+
"fast.out": (t: number) => number;
|
|
13
|
+
"fast.inOut": (t: number) => number;
|
|
14
|
+
"veryFast.in": (t: number) => number;
|
|
15
|
+
"veryFast.out": (t: number) => number;
|
|
16
|
+
"veryFast.inOut": (t: number) => number;
|
|
17
|
+
};
|
|
18
|
+
type EasingName = keyof typeof easings;
|
|
19
|
+
|
|
20
|
+
interface TweenVars {
|
|
21
|
+
duration?: number;
|
|
22
|
+
delay?: number;
|
|
23
|
+
ease?: EasingName | EasingFunction;
|
|
24
|
+
autoPlay?: boolean;
|
|
25
|
+
repeat?: number;
|
|
26
|
+
alternate?: boolean;
|
|
27
|
+
onStart?: () => void;
|
|
28
|
+
onUpdate?: () => void;
|
|
29
|
+
onComplete?: () => void;
|
|
30
|
+
onRepeat?: () => void;
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}
|
|
33
|
+
declare class Tween {
|
|
34
|
+
target: any;
|
|
35
|
+
vars: TweenVars;
|
|
36
|
+
duration: number;
|
|
37
|
+
delay: number;
|
|
38
|
+
private ease;
|
|
39
|
+
private fromVars?;
|
|
40
|
+
private isFrom;
|
|
41
|
+
private playhead;
|
|
42
|
+
private reversed;
|
|
43
|
+
private started;
|
|
44
|
+
private completed;
|
|
45
|
+
private repeatCount;
|
|
46
|
+
private propTweens;
|
|
47
|
+
constructor(target: any, vars: TweenVars, fromVars?: TweenVars, isFrom?: boolean);
|
|
48
|
+
private initProperties;
|
|
49
|
+
private parseValue;
|
|
50
|
+
private getTransformState;
|
|
51
|
+
private applyTransform;
|
|
52
|
+
play(): void;
|
|
53
|
+
reverse(): void;
|
|
54
|
+
pause(): void;
|
|
55
|
+
render(time: number): void;
|
|
56
|
+
private update;
|
|
57
|
+
kill(): void;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
interface TimelineVars {
|
|
61
|
+
delay?: number;
|
|
62
|
+
paused?: boolean;
|
|
63
|
+
repeat?: number;
|
|
64
|
+
alternate?: boolean;
|
|
65
|
+
onStart?: () => void;
|
|
66
|
+
onUpdate?: () => void;
|
|
67
|
+
onComplete?: () => void;
|
|
68
|
+
onRepeat?: () => void;
|
|
69
|
+
}
|
|
70
|
+
declare class Timeline {
|
|
71
|
+
private children;
|
|
72
|
+
private vars;
|
|
73
|
+
duration: number;
|
|
74
|
+
delay: number;
|
|
75
|
+
private playhead;
|
|
76
|
+
private reversed;
|
|
77
|
+
private started;
|
|
78
|
+
private completed;
|
|
79
|
+
private isPlaying;
|
|
80
|
+
private repeatCount;
|
|
81
|
+
constructor(vars?: TimelineVars);
|
|
82
|
+
/**
|
|
83
|
+
* Adds an existing, externally created Tween instance to this timeline.
|
|
84
|
+
* Useful for inserting custom tweens like fluxo.drawSVG().
|
|
85
|
+
*
|
|
86
|
+
* @param tween The Tween instance to add.
|
|
87
|
+
* @param position Optional position key (number, relative offset like "+=0.5", or alignment like "<").
|
|
88
|
+
*/
|
|
89
|
+
add(tween: Tween, position?: number | string): this;
|
|
90
|
+
/**
|
|
91
|
+
* Adds .to() tweens to the timeline.
|
|
92
|
+
*/
|
|
93
|
+
to(target: any, vars: TweenVars, position?: number | string): this;
|
|
94
|
+
/**
|
|
95
|
+
* Adds .from() tweens to the timeline.
|
|
96
|
+
*/
|
|
97
|
+
from(target: any, vars: TweenVars, position?: number | string): this;
|
|
98
|
+
/**
|
|
99
|
+
* Adds .fromTo() tweens to the timeline.
|
|
100
|
+
*/
|
|
101
|
+
fromTo(target: any, fromVars: TweenVars, toVars: TweenVars, position?: number | string): this;
|
|
102
|
+
play(): void;
|
|
103
|
+
reverse(): void;
|
|
104
|
+
pause(): void;
|
|
105
|
+
kill(): void;
|
|
106
|
+
private parsePosition;
|
|
107
|
+
private addTween;
|
|
108
|
+
render(time: number): void;
|
|
109
|
+
private update;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
interface ScrollTriggerVars {
|
|
113
|
+
trigger: string | HTMLElement;
|
|
114
|
+
start?: string;
|
|
115
|
+
end?: string;
|
|
116
|
+
scrub?: boolean;
|
|
117
|
+
once?: boolean;
|
|
118
|
+
}
|
|
119
|
+
declare class ScrollTrigger {
|
|
120
|
+
private static instances;
|
|
121
|
+
private animation;
|
|
122
|
+
private triggerEl;
|
|
123
|
+
private vars;
|
|
124
|
+
private startScroll;
|
|
125
|
+
private endScroll;
|
|
126
|
+
private hasTriggered;
|
|
127
|
+
constructor(animation: Tween | Timeline, vars: ScrollTriggerVars);
|
|
128
|
+
refresh(): void;
|
|
129
|
+
private calculateScrollPos;
|
|
130
|
+
private onScroll;
|
|
131
|
+
kill(): void;
|
|
132
|
+
static killAll(): void;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
type TickerCallback = (time: number, dt: number) => void;
|
|
136
|
+
declare class Ticker {
|
|
137
|
+
private callbacks;
|
|
138
|
+
private rafId;
|
|
139
|
+
private lastTime;
|
|
140
|
+
private time;
|
|
141
|
+
constructor();
|
|
142
|
+
add(cb: TickerCallback): void;
|
|
143
|
+
remove(cb: TickerCallback): void;
|
|
144
|
+
private start;
|
|
145
|
+
private stop;
|
|
146
|
+
private tick;
|
|
147
|
+
}
|
|
148
|
+
declare const ticker: Ticker;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Resolves various target formats (CSS selector, single DOM element, array, NodeList)
|
|
152
|
+
* into a standard array of targets.
|
|
153
|
+
*/
|
|
154
|
+
declare function resolveTargets(target: any): any[];
|
|
155
|
+
/**
|
|
156
|
+
* Splits the text of DOM elements into individual character or word spans,
|
|
157
|
+
* making them ready for cascaded stagger animations.
|
|
158
|
+
*
|
|
159
|
+
* @param target CSS selector string or HTMLElement(s).
|
|
160
|
+
* @param options Split configuration (type: 'chars' | 'words'). Defaults to 'chars'.
|
|
161
|
+
*/
|
|
162
|
+
declare function splitText(target: any, options?: {
|
|
163
|
+
type?: "chars" | "words";
|
|
164
|
+
}): HTMLElement[];
|
|
165
|
+
/**
|
|
166
|
+
* Animates the outline drawing of SVG paths by computing total length
|
|
167
|
+
* and tweening its stroke dash offsets.
|
|
168
|
+
*
|
|
169
|
+
* @param target CSS selector string or SVGPathElement.
|
|
170
|
+
* @param vars Tween configuration (duration, delay, ease, callbacks).
|
|
171
|
+
*/
|
|
172
|
+
declare function drawSVG(target: any, vars: TweenVars): Tween;
|
|
173
|
+
|
|
174
|
+
declare function slidingMenu(containerSelector: any, linksSelector: string, pillSelector: any, options?: {
|
|
175
|
+
duration?: number;
|
|
176
|
+
ease?: EasingName | EasingFunction;
|
|
177
|
+
}): void;
|
|
178
|
+
declare function magnetic(target: any, options?: {
|
|
179
|
+
strength?: number;
|
|
180
|
+
proximity?: number;
|
|
181
|
+
duration?: number;
|
|
182
|
+
ease?: EasingName | EasingFunction;
|
|
183
|
+
}): void;
|
|
184
|
+
declare function tilt(target: any, options?: {
|
|
185
|
+
maxTilt?: number;
|
|
186
|
+
perspective?: number;
|
|
187
|
+
duration?: number;
|
|
188
|
+
ease?: EasingName | EasingFunction;
|
|
189
|
+
}): void;
|
|
190
|
+
declare function explodeOnScroll(target: any, options?: {
|
|
191
|
+
strength?: number;
|
|
192
|
+
start?: string;
|
|
193
|
+
end?: string;
|
|
194
|
+
ease?: EasingName | EasingFunction;
|
|
195
|
+
}): void;
|
|
196
|
+
declare function implodeOnScroll(target: any, options?: {
|
|
197
|
+
strength?: number;
|
|
198
|
+
start?: string;
|
|
199
|
+
end?: string;
|
|
200
|
+
ease?: EasingName | EasingFunction;
|
|
201
|
+
}): void;
|
|
202
|
+
declare function revealText(target: any, options?: {
|
|
203
|
+
type?: "chars" | "words";
|
|
204
|
+
stagger?: number;
|
|
205
|
+
duration?: number;
|
|
206
|
+
ease?: EasingName | EasingFunction;
|
|
207
|
+
delay?: number;
|
|
208
|
+
}): void;
|
|
209
|
+
declare function scrollReveal(target: any, options?: {
|
|
210
|
+
stagger?: number;
|
|
211
|
+
y?: number;
|
|
212
|
+
duration?: number;
|
|
213
|
+
ease?: EasingName | EasingFunction;
|
|
214
|
+
start?: string;
|
|
215
|
+
once?: boolean;
|
|
216
|
+
}): void;
|
|
217
|
+
|
|
218
|
+
declare const fluxo: {
|
|
219
|
+
/**
|
|
220
|
+
* Creates an animation that goes FROM the current values of the target
|
|
221
|
+
* TO the values defined in 'vars'. Supports multiple targets, stagger, and scroll animator.
|
|
222
|
+
*/
|
|
223
|
+
to(target: any, vars: TweenVars): Tween | Timeline;
|
|
224
|
+
/**
|
|
225
|
+
* Creates an animation that goes FROM the values defined in 'vars'
|
|
226
|
+
* TO the current values of the target. Supports multiple targets, stagger, and scroll animator.
|
|
227
|
+
*/
|
|
228
|
+
from(target: any, vars: TweenVars): Tween | Timeline;
|
|
229
|
+
/**
|
|
230
|
+
* Creates an animation that goes FROM the values defined in 'fromVars'
|
|
231
|
+
* TO the values defined in 'toVars'. Supports multiple targets, stagger, and scroll animator.
|
|
232
|
+
*/
|
|
233
|
+
fromTo(target: any, fromVars: TweenVars, toVars: TweenVars): Tween | Timeline;
|
|
234
|
+
/**
|
|
235
|
+
* Creates a new Timeline instance for sequencing multiple animations.
|
|
236
|
+
*/
|
|
237
|
+
timeline(vars?: TimelineVars & {
|
|
238
|
+
scroll?: any;
|
|
239
|
+
}): Timeline;
|
|
240
|
+
/**
|
|
241
|
+
* Splits text of DOM elements into individual character or word spans,
|
|
242
|
+
* making them ready for cascaded stagger animations.
|
|
243
|
+
*/
|
|
244
|
+
splitText(target: any, options?: {
|
|
245
|
+
type?: "chars" | "words";
|
|
246
|
+
}): HTMLElement[];
|
|
247
|
+
/**
|
|
248
|
+
* Animates the outline drawing of SVG paths.
|
|
249
|
+
*/
|
|
250
|
+
drawSVG(target: any, vars: TweenVars): Tween;
|
|
251
|
+
magnetic(target: any, options?: any): void;
|
|
252
|
+
tilt(target: any, options?: any): void;
|
|
253
|
+
explodeOnScroll(target: any, options?: any): void;
|
|
254
|
+
implodeOnScroll(target: any, options?: any): void;
|
|
255
|
+
revealText(target: any, options?: any): void;
|
|
256
|
+
scrollReveal(target: any, options?: any): void;
|
|
257
|
+
slidingMenu(container: any, links: string, pill: any, options?: any): void;
|
|
258
|
+
killAllTriggers(): void;
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
export { ScrollTrigger, type ScrollTriggerVars, Timeline, type TimelineVars, Tween, type TweenVars, drawSVG, easings, explodeOnScroll, fluxo, implodeOnScroll, magnetic, resolveTargets, revealText, scrollReveal, slidingMenu, splitText, ticker, tilt };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
type EasingFunction = (t: number) => number;
|
|
2
|
+
declare const easings: {
|
|
3
|
+
none: (t: number) => number;
|
|
4
|
+
linear: (t: number) => number;
|
|
5
|
+
"slow.in": (t: number) => number;
|
|
6
|
+
"slow.out": (t: number) => number;
|
|
7
|
+
"slow.inOut": (t: number) => number;
|
|
8
|
+
"medium.in": (t: number) => number;
|
|
9
|
+
"medium.out": (t: number) => number;
|
|
10
|
+
"medium.inOut": (t: number) => number;
|
|
11
|
+
"fast.in": (t: number) => number;
|
|
12
|
+
"fast.out": (t: number) => number;
|
|
13
|
+
"fast.inOut": (t: number) => number;
|
|
14
|
+
"veryFast.in": (t: number) => number;
|
|
15
|
+
"veryFast.out": (t: number) => number;
|
|
16
|
+
"veryFast.inOut": (t: number) => number;
|
|
17
|
+
};
|
|
18
|
+
type EasingName = keyof typeof easings;
|
|
19
|
+
|
|
20
|
+
interface TweenVars {
|
|
21
|
+
duration?: number;
|
|
22
|
+
delay?: number;
|
|
23
|
+
ease?: EasingName | EasingFunction;
|
|
24
|
+
autoPlay?: boolean;
|
|
25
|
+
repeat?: number;
|
|
26
|
+
alternate?: boolean;
|
|
27
|
+
onStart?: () => void;
|
|
28
|
+
onUpdate?: () => void;
|
|
29
|
+
onComplete?: () => void;
|
|
30
|
+
onRepeat?: () => void;
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}
|
|
33
|
+
declare class Tween {
|
|
34
|
+
target: any;
|
|
35
|
+
vars: TweenVars;
|
|
36
|
+
duration: number;
|
|
37
|
+
delay: number;
|
|
38
|
+
private ease;
|
|
39
|
+
private fromVars?;
|
|
40
|
+
private isFrom;
|
|
41
|
+
private playhead;
|
|
42
|
+
private reversed;
|
|
43
|
+
private started;
|
|
44
|
+
private completed;
|
|
45
|
+
private repeatCount;
|
|
46
|
+
private propTweens;
|
|
47
|
+
constructor(target: any, vars: TweenVars, fromVars?: TweenVars, isFrom?: boolean);
|
|
48
|
+
private initProperties;
|
|
49
|
+
private parseValue;
|
|
50
|
+
private getTransformState;
|
|
51
|
+
private applyTransform;
|
|
52
|
+
play(): void;
|
|
53
|
+
reverse(): void;
|
|
54
|
+
pause(): void;
|
|
55
|
+
render(time: number): void;
|
|
56
|
+
private update;
|
|
57
|
+
kill(): void;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
interface TimelineVars {
|
|
61
|
+
delay?: number;
|
|
62
|
+
paused?: boolean;
|
|
63
|
+
repeat?: number;
|
|
64
|
+
alternate?: boolean;
|
|
65
|
+
onStart?: () => void;
|
|
66
|
+
onUpdate?: () => void;
|
|
67
|
+
onComplete?: () => void;
|
|
68
|
+
onRepeat?: () => void;
|
|
69
|
+
}
|
|
70
|
+
declare class Timeline {
|
|
71
|
+
private children;
|
|
72
|
+
private vars;
|
|
73
|
+
duration: number;
|
|
74
|
+
delay: number;
|
|
75
|
+
private playhead;
|
|
76
|
+
private reversed;
|
|
77
|
+
private started;
|
|
78
|
+
private completed;
|
|
79
|
+
private isPlaying;
|
|
80
|
+
private repeatCount;
|
|
81
|
+
constructor(vars?: TimelineVars);
|
|
82
|
+
/**
|
|
83
|
+
* Adds an existing, externally created Tween instance to this timeline.
|
|
84
|
+
* Useful for inserting custom tweens like fluxo.drawSVG().
|
|
85
|
+
*
|
|
86
|
+
* @param tween The Tween instance to add.
|
|
87
|
+
* @param position Optional position key (number, relative offset like "+=0.5", or alignment like "<").
|
|
88
|
+
*/
|
|
89
|
+
add(tween: Tween, position?: number | string): this;
|
|
90
|
+
/**
|
|
91
|
+
* Adds .to() tweens to the timeline.
|
|
92
|
+
*/
|
|
93
|
+
to(target: any, vars: TweenVars, position?: number | string): this;
|
|
94
|
+
/**
|
|
95
|
+
* Adds .from() tweens to the timeline.
|
|
96
|
+
*/
|
|
97
|
+
from(target: any, vars: TweenVars, position?: number | string): this;
|
|
98
|
+
/**
|
|
99
|
+
* Adds .fromTo() tweens to the timeline.
|
|
100
|
+
*/
|
|
101
|
+
fromTo(target: any, fromVars: TweenVars, toVars: TweenVars, position?: number | string): this;
|
|
102
|
+
play(): void;
|
|
103
|
+
reverse(): void;
|
|
104
|
+
pause(): void;
|
|
105
|
+
kill(): void;
|
|
106
|
+
private parsePosition;
|
|
107
|
+
private addTween;
|
|
108
|
+
render(time: number): void;
|
|
109
|
+
private update;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
interface ScrollTriggerVars {
|
|
113
|
+
trigger: string | HTMLElement;
|
|
114
|
+
start?: string;
|
|
115
|
+
end?: string;
|
|
116
|
+
scrub?: boolean;
|
|
117
|
+
once?: boolean;
|
|
118
|
+
}
|
|
119
|
+
declare class ScrollTrigger {
|
|
120
|
+
private static instances;
|
|
121
|
+
private animation;
|
|
122
|
+
private triggerEl;
|
|
123
|
+
private vars;
|
|
124
|
+
private startScroll;
|
|
125
|
+
private endScroll;
|
|
126
|
+
private hasTriggered;
|
|
127
|
+
constructor(animation: Tween | Timeline, vars: ScrollTriggerVars);
|
|
128
|
+
refresh(): void;
|
|
129
|
+
private calculateScrollPos;
|
|
130
|
+
private onScroll;
|
|
131
|
+
kill(): void;
|
|
132
|
+
static killAll(): void;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
type TickerCallback = (time: number, dt: number) => void;
|
|
136
|
+
declare class Ticker {
|
|
137
|
+
private callbacks;
|
|
138
|
+
private rafId;
|
|
139
|
+
private lastTime;
|
|
140
|
+
private time;
|
|
141
|
+
constructor();
|
|
142
|
+
add(cb: TickerCallback): void;
|
|
143
|
+
remove(cb: TickerCallback): void;
|
|
144
|
+
private start;
|
|
145
|
+
private stop;
|
|
146
|
+
private tick;
|
|
147
|
+
}
|
|
148
|
+
declare const ticker: Ticker;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Resolves various target formats (CSS selector, single DOM element, array, NodeList)
|
|
152
|
+
* into a standard array of targets.
|
|
153
|
+
*/
|
|
154
|
+
declare function resolveTargets(target: any): any[];
|
|
155
|
+
/**
|
|
156
|
+
* Splits the text of DOM elements into individual character or word spans,
|
|
157
|
+
* making them ready for cascaded stagger animations.
|
|
158
|
+
*
|
|
159
|
+
* @param target CSS selector string or HTMLElement(s).
|
|
160
|
+
* @param options Split configuration (type: 'chars' | 'words'). Defaults to 'chars'.
|
|
161
|
+
*/
|
|
162
|
+
declare function splitText(target: any, options?: {
|
|
163
|
+
type?: "chars" | "words";
|
|
164
|
+
}): HTMLElement[];
|
|
165
|
+
/**
|
|
166
|
+
* Animates the outline drawing of SVG paths by computing total length
|
|
167
|
+
* and tweening its stroke dash offsets.
|
|
168
|
+
*
|
|
169
|
+
* @param target CSS selector string or SVGPathElement.
|
|
170
|
+
* @param vars Tween configuration (duration, delay, ease, callbacks).
|
|
171
|
+
*/
|
|
172
|
+
declare function drawSVG(target: any, vars: TweenVars): Tween;
|
|
173
|
+
|
|
174
|
+
declare function slidingMenu(containerSelector: any, linksSelector: string, pillSelector: any, options?: {
|
|
175
|
+
duration?: number;
|
|
176
|
+
ease?: EasingName | EasingFunction;
|
|
177
|
+
}): void;
|
|
178
|
+
declare function magnetic(target: any, options?: {
|
|
179
|
+
strength?: number;
|
|
180
|
+
proximity?: number;
|
|
181
|
+
duration?: number;
|
|
182
|
+
ease?: EasingName | EasingFunction;
|
|
183
|
+
}): void;
|
|
184
|
+
declare function tilt(target: any, options?: {
|
|
185
|
+
maxTilt?: number;
|
|
186
|
+
perspective?: number;
|
|
187
|
+
duration?: number;
|
|
188
|
+
ease?: EasingName | EasingFunction;
|
|
189
|
+
}): void;
|
|
190
|
+
declare function explodeOnScroll(target: any, options?: {
|
|
191
|
+
strength?: number;
|
|
192
|
+
start?: string;
|
|
193
|
+
end?: string;
|
|
194
|
+
ease?: EasingName | EasingFunction;
|
|
195
|
+
}): void;
|
|
196
|
+
declare function implodeOnScroll(target: any, options?: {
|
|
197
|
+
strength?: number;
|
|
198
|
+
start?: string;
|
|
199
|
+
end?: string;
|
|
200
|
+
ease?: EasingName | EasingFunction;
|
|
201
|
+
}): void;
|
|
202
|
+
declare function revealText(target: any, options?: {
|
|
203
|
+
type?: "chars" | "words";
|
|
204
|
+
stagger?: number;
|
|
205
|
+
duration?: number;
|
|
206
|
+
ease?: EasingName | EasingFunction;
|
|
207
|
+
delay?: number;
|
|
208
|
+
}): void;
|
|
209
|
+
declare function scrollReveal(target: any, options?: {
|
|
210
|
+
stagger?: number;
|
|
211
|
+
y?: number;
|
|
212
|
+
duration?: number;
|
|
213
|
+
ease?: EasingName | EasingFunction;
|
|
214
|
+
start?: string;
|
|
215
|
+
once?: boolean;
|
|
216
|
+
}): void;
|
|
217
|
+
|
|
218
|
+
declare const fluxo: {
|
|
219
|
+
/**
|
|
220
|
+
* Creates an animation that goes FROM the current values of the target
|
|
221
|
+
* TO the values defined in 'vars'. Supports multiple targets, stagger, and scroll animator.
|
|
222
|
+
*/
|
|
223
|
+
to(target: any, vars: TweenVars): Tween | Timeline;
|
|
224
|
+
/**
|
|
225
|
+
* Creates an animation that goes FROM the values defined in 'vars'
|
|
226
|
+
* TO the current values of the target. Supports multiple targets, stagger, and scroll animator.
|
|
227
|
+
*/
|
|
228
|
+
from(target: any, vars: TweenVars): Tween | Timeline;
|
|
229
|
+
/**
|
|
230
|
+
* Creates an animation that goes FROM the values defined in 'fromVars'
|
|
231
|
+
* TO the values defined in 'toVars'. Supports multiple targets, stagger, and scroll animator.
|
|
232
|
+
*/
|
|
233
|
+
fromTo(target: any, fromVars: TweenVars, toVars: TweenVars): Tween | Timeline;
|
|
234
|
+
/**
|
|
235
|
+
* Creates a new Timeline instance for sequencing multiple animations.
|
|
236
|
+
*/
|
|
237
|
+
timeline(vars?: TimelineVars & {
|
|
238
|
+
scroll?: any;
|
|
239
|
+
}): Timeline;
|
|
240
|
+
/**
|
|
241
|
+
* Splits text of DOM elements into individual character or word spans,
|
|
242
|
+
* making them ready for cascaded stagger animations.
|
|
243
|
+
*/
|
|
244
|
+
splitText(target: any, options?: {
|
|
245
|
+
type?: "chars" | "words";
|
|
246
|
+
}): HTMLElement[];
|
|
247
|
+
/**
|
|
248
|
+
* Animates the outline drawing of SVG paths.
|
|
249
|
+
*/
|
|
250
|
+
drawSVG(target: any, vars: TweenVars): Tween;
|
|
251
|
+
magnetic(target: any, options?: any): void;
|
|
252
|
+
tilt(target: any, options?: any): void;
|
|
253
|
+
explodeOnScroll(target: any, options?: any): void;
|
|
254
|
+
implodeOnScroll(target: any, options?: any): void;
|
|
255
|
+
revealText(target: any, options?: any): void;
|
|
256
|
+
scrollReveal(target: any, options?: any): void;
|
|
257
|
+
slidingMenu(container: any, links: string, pill: any, options?: any): void;
|
|
258
|
+
killAllTriggers(): void;
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
export { ScrollTrigger, type ScrollTriggerVars, Timeline, type TimelineVars, Tween, type TweenVars, drawSVG, easings, explodeOnScroll, fluxo, implodeOnScroll, magnetic, resolveTargets, revealText, scrollReveal, slidingMenu, splitText, ticker, tilt };
|