pagewave 1.0.4 → 1.0.6
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/README.md +350 -331
- package/dist/KeyFramePreset.css +55 -0
- package/{OverlayPreset.css → dist/OverlayPreset.css} +49 -14
- package/dist/index.d.mts +127 -0
- package/dist/index.d.ts +127 -0
- package/dist/index.js +579 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +543 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +28 -8
- package/KeyFramePreset.css +0 -20
- package/sw.js +0 -40
- package/transition.js +0 -518
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
@keyframes fade {
|
|
2
|
+
from{
|
|
3
|
+
opacity: 1;
|
|
4
|
+
}
|
|
5
|
+
to{
|
|
6
|
+
opacity: 0;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
@keyframes fadeaway {
|
|
10
|
+
from{
|
|
11
|
+
position: relative;
|
|
12
|
+
opacity: 1;
|
|
13
|
+
left: 0
|
|
14
|
+
}
|
|
15
|
+
to{
|
|
16
|
+
position: relative;
|
|
17
|
+
opacity: 0;
|
|
18
|
+
left: -200px
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
@keyframes fadetoleft {
|
|
22
|
+
from{
|
|
23
|
+
position: relative;
|
|
24
|
+
left: 0;
|
|
25
|
+
opacity: 1;
|
|
26
|
+
}
|
|
27
|
+
to{
|
|
28
|
+
position: relative;
|
|
29
|
+
left: -100px;
|
|
30
|
+
opacity: 0;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
@keyframes fadetoright {
|
|
34
|
+
from{
|
|
35
|
+
position: relative;
|
|
36
|
+
left: 0;
|
|
37
|
+
opacity: 1;
|
|
38
|
+
}
|
|
39
|
+
to{
|
|
40
|
+
position: relative;
|
|
41
|
+
left: 100px;
|
|
42
|
+
opacity: 0;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
@keyframes rotatefade {
|
|
46
|
+
0% {
|
|
47
|
+
transform: rotateZ(0deg);
|
|
48
|
+
opacity: 1;
|
|
49
|
+
}
|
|
50
|
+
100% {
|
|
51
|
+
transform: rotateY(-180deg);
|
|
52
|
+
opacity: 0;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
width: 100%;
|
|
7
7
|
height: 100%;
|
|
8
8
|
position: absolute;
|
|
9
|
-
|
|
9
|
+
|
|
10
10
|
clip-path: circle(0%);
|
|
11
11
|
top: 0;
|
|
12
12
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
width: 100%;
|
|
15
15
|
height: 100%;
|
|
16
16
|
position: absolute;
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
clip-path: circle(100%);
|
|
19
19
|
top: 0;
|
|
20
20
|
}
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
width: 100%;
|
|
26
26
|
position: absolute;
|
|
27
27
|
top: 0;
|
|
28
|
-
|
|
28
|
+
|
|
29
29
|
}
|
|
30
30
|
to{
|
|
31
31
|
height: 100%;
|
|
32
32
|
width: 100%;
|
|
33
33
|
position: absolute;
|
|
34
34
|
top: 0;
|
|
35
|
-
|
|
35
|
+
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
@keyframes rise {
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
width: 100%;
|
|
42
42
|
position: absolute;
|
|
43
43
|
bottom: 0;
|
|
44
|
-
|
|
44
|
+
|
|
45
45
|
}
|
|
46
46
|
to{
|
|
47
47
|
height: 100%;
|
|
48
48
|
width: 100%;
|
|
49
49
|
position: absolute;
|
|
50
50
|
bottom: 0;
|
|
51
|
-
|
|
51
|
+
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
@keyframes leftcurtain{
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
width: 0%;
|
|
58
58
|
position: absolute;
|
|
59
59
|
top: 0;
|
|
60
|
-
|
|
60
|
+
|
|
61
61
|
}
|
|
62
62
|
to{
|
|
63
63
|
height: 100%;
|
|
64
64
|
width: 50%;
|
|
65
65
|
position: absolute;
|
|
66
66
|
top: 0;
|
|
67
|
-
|
|
67
|
+
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
@keyframes rightcurtain{
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
position: absolute;
|
|
75
75
|
right: 0;
|
|
76
76
|
top: 0;
|
|
77
|
-
|
|
77
|
+
|
|
78
78
|
}
|
|
79
79
|
to{
|
|
80
80
|
height: 100%;
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
position: absolute;
|
|
83
83
|
right: 0;
|
|
84
84
|
top: 0;
|
|
85
|
-
|
|
85
|
+
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
@keyframes inverseSlide{
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
position: absolute;
|
|
93
93
|
right: 0;
|
|
94
94
|
top: 0;
|
|
95
|
-
|
|
95
|
+
|
|
96
96
|
}
|
|
97
97
|
to{
|
|
98
98
|
height: 100%;
|
|
@@ -100,7 +100,6 @@
|
|
|
100
100
|
position: absolute;
|
|
101
101
|
right: 0;
|
|
102
102
|
top: 0;
|
|
103
|
-
background-color: var(--div-color);
|
|
104
103
|
}
|
|
105
104
|
}
|
|
106
105
|
@keyframes slide {
|
|
@@ -109,13 +108,49 @@
|
|
|
109
108
|
width: 0%;
|
|
110
109
|
position: absolute;
|
|
111
110
|
top: 0;
|
|
112
|
-
|
|
111
|
+
|
|
113
112
|
}
|
|
114
113
|
to{
|
|
115
114
|
height: 100%;
|
|
116
115
|
width: 100%;
|
|
117
116
|
position: absolute;
|
|
118
117
|
top: 0;
|
|
119
|
-
|
|
118
|
+
|
|
120
119
|
}
|
|
121
120
|
}
|
|
121
|
+
|
|
122
|
+
@keyframes wipe {
|
|
123
|
+
/* Initial: left middle, thin vertical bar */
|
|
124
|
+
0% {
|
|
125
|
+
position: absolute;
|
|
126
|
+
top: 50%;
|
|
127
|
+
left: 0;
|
|
128
|
+
width: 1%;
|
|
129
|
+
height: 2%;
|
|
130
|
+
transform: translateY(-50%) scaleX(0) scaleY(1);
|
|
131
|
+
transform-origin: left center;
|
|
132
|
+
z-index: 9999;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/* Grow to the right */
|
|
136
|
+
50% {
|
|
137
|
+
position: absolute;
|
|
138
|
+
top: 50%;
|
|
139
|
+
left: 0;
|
|
140
|
+
width: 100%;
|
|
141
|
+
height: 2%;
|
|
142
|
+
transform: translateY(-50%);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* Expand up & down */
|
|
146
|
+
100% {
|
|
147
|
+
position: absolute;
|
|
148
|
+
top: 50%;
|
|
149
|
+
left: 0;
|
|
150
|
+
width: 100%;
|
|
151
|
+
height: 100%;
|
|
152
|
+
transform: translateY(-50%);
|
|
153
|
+
transform-origin: left center;
|
|
154
|
+
z-index: 9999;
|
|
155
|
+
}
|
|
156
|
+
}
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
type DirectionType = "normal" | "reverse";
|
|
2
|
+
|
|
3
|
+
type OptionsType = {
|
|
4
|
+
mainContentIdName: string;
|
|
5
|
+
pageAnimationDelay: number;
|
|
6
|
+
runAnimationOnPageReload: boolean;
|
|
7
|
+
runAnimationOnCrossSite: boolean;
|
|
8
|
+
pageRevealDelay: number;
|
|
9
|
+
leavePageOnLink: boolean;
|
|
10
|
+
pageBlockerId: string;
|
|
11
|
+
classToIgnoreLink: string;
|
|
12
|
+
animateIgnoredLinks: boolean;
|
|
13
|
+
animateSelfLink: boolean;
|
|
14
|
+
loadEvent: "DOMContentLoaded" | "load";
|
|
15
|
+
preferIgnore: boolean;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
type TimingType = "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "step-start" | "step-end";
|
|
19
|
+
|
|
20
|
+
interface TransitionStyle {
|
|
21
|
+
duration: number;
|
|
22
|
+
timing?: TimingType;
|
|
23
|
+
handle(direction: DirectionType, mainElement: HTMLElement): void;
|
|
24
|
+
hidePage(options: OptionsType): void;
|
|
25
|
+
revealPage(options: OptionsType): void;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
declare class KeyFrameBase implements TransitionStyle {
|
|
29
|
+
duration: number;
|
|
30
|
+
timing: TimingType;
|
|
31
|
+
constructor(duration: number, timing?: TimingType);
|
|
32
|
+
handle(direction: DirectionType, mainElement: HTMLElement): void;
|
|
33
|
+
hidePage(options: OptionsType): void;
|
|
34
|
+
revealPage(options: OptionsType): void;
|
|
35
|
+
protected waitForElementLoad(selector: string, functionToExecute: (element: HTMLElement) => void): void;
|
|
36
|
+
protected ApplyAnimation(element: HTMLElement, animationName: string, duration: number, timing: TimingType, direction: DirectionType): void;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
declare class KeyFrameCustom extends KeyFrameBase {
|
|
40
|
+
animationName: string;
|
|
41
|
+
constructor(animationName: string, duration: number, timing?: TimingType);
|
|
42
|
+
handle(direction: DirectionType, mainElement: HTMLElement): void;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
type KeyFrameType = "fade" | "fadeaway" | "fadetoleft" | "fadetoright";
|
|
46
|
+
|
|
47
|
+
declare class KeyFramePreset extends KeyFrameCustom {
|
|
48
|
+
constructor(kfType: KeyFrameType, duration: number, timing?: TimingType);
|
|
49
|
+
handle(direction: DirectionType, mainElement: HTMLElement): void;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare class MultiElementAnimation extends KeyFrameBase {
|
|
53
|
+
animateableObjects: {
|
|
54
|
+
[selector: string]: string;
|
|
55
|
+
};
|
|
56
|
+
mainElementAnimation: string;
|
|
57
|
+
constructor(animateableObjects: {
|
|
58
|
+
[selector: string]: string;
|
|
59
|
+
}, duration: number, timing?: TimingType, mainElementAnimation?: string);
|
|
60
|
+
handle(direction: DirectionType, mainElement: HTMLElement): void;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
declare class OverlayBase implements TransitionStyle {
|
|
64
|
+
duration: number;
|
|
65
|
+
timing: TimingType;
|
|
66
|
+
color: string;
|
|
67
|
+
constructor(duration: number, color: string, timing?: TimingType);
|
|
68
|
+
handle(direction: DirectionType, mainElement: HTMLElement): void;
|
|
69
|
+
hidePage(options: OptionsType): void;
|
|
70
|
+
revealPage(options: OptionsType): void;
|
|
71
|
+
private waitForElementLoad;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
declare class OverlayCustom extends OverlayBase {
|
|
75
|
+
divAnimationObject: Record<string, string>;
|
|
76
|
+
mainElementAnimation: KeyFrameBase | null;
|
|
77
|
+
constructor(divAnimationObject: Record<string, string>, duration: number, color: string, timing?: TimingType, mainElementAnimation?: KeyFrameBase | null);
|
|
78
|
+
handle(direction: DirectionType, mainElement: HTMLElement): void;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
type OverlayType = "slide" | "inverseSlide" | "curtain" | "rise" | "fall" | "bubble" | "wipe";
|
|
82
|
+
|
|
83
|
+
declare class OverlayPreset extends OverlayCustom {
|
|
84
|
+
constructor(oType: OverlayType, duration: number, color: string, timing?: TimingType);
|
|
85
|
+
handle(direction: DirectionType, mainElement: HTMLElement): void;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
type OverlayStyledDiv = {
|
|
89
|
+
animationName: string;
|
|
90
|
+
cssDesign: Partial<Record<keyof CSSStyleDeclaration, string>>;
|
|
91
|
+
};
|
|
92
|
+
declare class OverlayStyled extends OverlayBase {
|
|
93
|
+
divAnimationObject: Record<string, OverlayStyledDiv>;
|
|
94
|
+
mainElementAnimation: KeyFrameBase | null;
|
|
95
|
+
blockerDesign: Partial<Record<keyof CSSStyleDeclaration, string>>;
|
|
96
|
+
constructor(divAnimationObject: Record<string, OverlayStyledDiv>, duration: number, color: string, timing?: TimingType, mainElementAnimation?: KeyFrameBase | null, blockerDesign?: Partial<Record<keyof CSSStyleDeclaration, string>>);
|
|
97
|
+
hidePage(options: OptionsType): void;
|
|
98
|
+
handle(direction: DirectionType, mainElement: HTMLElement): void;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
declare class PageWave {
|
|
102
|
+
defaultOptions: OptionsType;
|
|
103
|
+
finalOptions: OptionsType;
|
|
104
|
+
routeTransitions: Record<string, TransitionStyle>;
|
|
105
|
+
constructor(transitions: Record<string, TransitionStyle>, options?: Partial<OptionsType>);
|
|
106
|
+
private CallHook;
|
|
107
|
+
private isNavigationFromSameSite;
|
|
108
|
+
private isInternalLink;
|
|
109
|
+
private HandleClickAnimation;
|
|
110
|
+
ListenForChange(defaultTransitionStyle: TransitionStyle, leaveFunction?: (link: string) => void): void;
|
|
111
|
+
SendPoint(defaultTransitionStyle: TransitionStyle, leaveFunction?: (link: string) => void, externalLeaveFunction?: (link: string) => void): void;
|
|
112
|
+
getStorageRouteTransition(defaultTransitionStyle: TransitionStyle): TransitionStyle;
|
|
113
|
+
EndPoint(defaultTransitionStyle: TransitionStyle): void;
|
|
114
|
+
CallEndPoint(): void;
|
|
115
|
+
SaveAndTransition(animationName: string, aStyle: TransitionStyle, direction?: DirectionType): void;
|
|
116
|
+
AnimatePageTransition(aStyle: TransitionStyle, direction?: DirectionType): void;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
declare class StyleTransition extends KeyFrameBase {
|
|
120
|
+
styleString: keyof CSSStyleDeclaration;
|
|
121
|
+
startValue: string;
|
|
122
|
+
endValue: string;
|
|
123
|
+
constructor(styleString: keyof CSSStyleDeclaration, duration: number, startValue: string, endValue: string, timing?: TimingType);
|
|
124
|
+
handle(direction: DirectionType, mainElement: HTMLElement): void;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export { type DirectionType, KeyFrameBase, KeyFrameCustom, KeyFramePreset, type KeyFrameType, MultiElementAnimation, type OptionsType, OverlayBase, OverlayCustom, OverlayPreset, OverlayStyled, type OverlayStyledDiv, type OverlayType, PageWave, StyleTransition, type TimingType, type TransitionStyle };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
type DirectionType = "normal" | "reverse";
|
|
2
|
+
|
|
3
|
+
type OptionsType = {
|
|
4
|
+
mainContentIdName: string;
|
|
5
|
+
pageAnimationDelay: number;
|
|
6
|
+
runAnimationOnPageReload: boolean;
|
|
7
|
+
runAnimationOnCrossSite: boolean;
|
|
8
|
+
pageRevealDelay: number;
|
|
9
|
+
leavePageOnLink: boolean;
|
|
10
|
+
pageBlockerId: string;
|
|
11
|
+
classToIgnoreLink: string;
|
|
12
|
+
animateIgnoredLinks: boolean;
|
|
13
|
+
animateSelfLink: boolean;
|
|
14
|
+
loadEvent: "DOMContentLoaded" | "load";
|
|
15
|
+
preferIgnore: boolean;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
type TimingType = "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "step-start" | "step-end";
|
|
19
|
+
|
|
20
|
+
interface TransitionStyle {
|
|
21
|
+
duration: number;
|
|
22
|
+
timing?: TimingType;
|
|
23
|
+
handle(direction: DirectionType, mainElement: HTMLElement): void;
|
|
24
|
+
hidePage(options: OptionsType): void;
|
|
25
|
+
revealPage(options: OptionsType): void;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
declare class KeyFrameBase implements TransitionStyle {
|
|
29
|
+
duration: number;
|
|
30
|
+
timing: TimingType;
|
|
31
|
+
constructor(duration: number, timing?: TimingType);
|
|
32
|
+
handle(direction: DirectionType, mainElement: HTMLElement): void;
|
|
33
|
+
hidePage(options: OptionsType): void;
|
|
34
|
+
revealPage(options: OptionsType): void;
|
|
35
|
+
protected waitForElementLoad(selector: string, functionToExecute: (element: HTMLElement) => void): void;
|
|
36
|
+
protected ApplyAnimation(element: HTMLElement, animationName: string, duration: number, timing: TimingType, direction: DirectionType): void;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
declare class KeyFrameCustom extends KeyFrameBase {
|
|
40
|
+
animationName: string;
|
|
41
|
+
constructor(animationName: string, duration: number, timing?: TimingType);
|
|
42
|
+
handle(direction: DirectionType, mainElement: HTMLElement): void;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
type KeyFrameType = "fade" | "fadeaway" | "fadetoleft" | "fadetoright";
|
|
46
|
+
|
|
47
|
+
declare class KeyFramePreset extends KeyFrameCustom {
|
|
48
|
+
constructor(kfType: KeyFrameType, duration: number, timing?: TimingType);
|
|
49
|
+
handle(direction: DirectionType, mainElement: HTMLElement): void;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare class MultiElementAnimation extends KeyFrameBase {
|
|
53
|
+
animateableObjects: {
|
|
54
|
+
[selector: string]: string;
|
|
55
|
+
};
|
|
56
|
+
mainElementAnimation: string;
|
|
57
|
+
constructor(animateableObjects: {
|
|
58
|
+
[selector: string]: string;
|
|
59
|
+
}, duration: number, timing?: TimingType, mainElementAnimation?: string);
|
|
60
|
+
handle(direction: DirectionType, mainElement: HTMLElement): void;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
declare class OverlayBase implements TransitionStyle {
|
|
64
|
+
duration: number;
|
|
65
|
+
timing: TimingType;
|
|
66
|
+
color: string;
|
|
67
|
+
constructor(duration: number, color: string, timing?: TimingType);
|
|
68
|
+
handle(direction: DirectionType, mainElement: HTMLElement): void;
|
|
69
|
+
hidePage(options: OptionsType): void;
|
|
70
|
+
revealPage(options: OptionsType): void;
|
|
71
|
+
private waitForElementLoad;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
declare class OverlayCustom extends OverlayBase {
|
|
75
|
+
divAnimationObject: Record<string, string>;
|
|
76
|
+
mainElementAnimation: KeyFrameBase | null;
|
|
77
|
+
constructor(divAnimationObject: Record<string, string>, duration: number, color: string, timing?: TimingType, mainElementAnimation?: KeyFrameBase | null);
|
|
78
|
+
handle(direction: DirectionType, mainElement: HTMLElement): void;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
type OverlayType = "slide" | "inverseSlide" | "curtain" | "rise" | "fall" | "bubble" | "wipe";
|
|
82
|
+
|
|
83
|
+
declare class OverlayPreset extends OverlayCustom {
|
|
84
|
+
constructor(oType: OverlayType, duration: number, color: string, timing?: TimingType);
|
|
85
|
+
handle(direction: DirectionType, mainElement: HTMLElement): void;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
type OverlayStyledDiv = {
|
|
89
|
+
animationName: string;
|
|
90
|
+
cssDesign: Partial<Record<keyof CSSStyleDeclaration, string>>;
|
|
91
|
+
};
|
|
92
|
+
declare class OverlayStyled extends OverlayBase {
|
|
93
|
+
divAnimationObject: Record<string, OverlayStyledDiv>;
|
|
94
|
+
mainElementAnimation: KeyFrameBase | null;
|
|
95
|
+
blockerDesign: Partial<Record<keyof CSSStyleDeclaration, string>>;
|
|
96
|
+
constructor(divAnimationObject: Record<string, OverlayStyledDiv>, duration: number, color: string, timing?: TimingType, mainElementAnimation?: KeyFrameBase | null, blockerDesign?: Partial<Record<keyof CSSStyleDeclaration, string>>);
|
|
97
|
+
hidePage(options: OptionsType): void;
|
|
98
|
+
handle(direction: DirectionType, mainElement: HTMLElement): void;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
declare class PageWave {
|
|
102
|
+
defaultOptions: OptionsType;
|
|
103
|
+
finalOptions: OptionsType;
|
|
104
|
+
routeTransitions: Record<string, TransitionStyle>;
|
|
105
|
+
constructor(transitions: Record<string, TransitionStyle>, options?: Partial<OptionsType>);
|
|
106
|
+
private CallHook;
|
|
107
|
+
private isNavigationFromSameSite;
|
|
108
|
+
private isInternalLink;
|
|
109
|
+
private HandleClickAnimation;
|
|
110
|
+
ListenForChange(defaultTransitionStyle: TransitionStyle, leaveFunction?: (link: string) => void): void;
|
|
111
|
+
SendPoint(defaultTransitionStyle: TransitionStyle, leaveFunction?: (link: string) => void, externalLeaveFunction?: (link: string) => void): void;
|
|
112
|
+
getStorageRouteTransition(defaultTransitionStyle: TransitionStyle): TransitionStyle;
|
|
113
|
+
EndPoint(defaultTransitionStyle: TransitionStyle): void;
|
|
114
|
+
CallEndPoint(): void;
|
|
115
|
+
SaveAndTransition(animationName: string, aStyle: TransitionStyle, direction?: DirectionType): void;
|
|
116
|
+
AnimatePageTransition(aStyle: TransitionStyle, direction?: DirectionType): void;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
declare class StyleTransition extends KeyFrameBase {
|
|
120
|
+
styleString: keyof CSSStyleDeclaration;
|
|
121
|
+
startValue: string;
|
|
122
|
+
endValue: string;
|
|
123
|
+
constructor(styleString: keyof CSSStyleDeclaration, duration: number, startValue: string, endValue: string, timing?: TimingType);
|
|
124
|
+
handle(direction: DirectionType, mainElement: HTMLElement): void;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export { type DirectionType, KeyFrameBase, KeyFrameCustom, KeyFramePreset, type KeyFrameType, MultiElementAnimation, type OptionsType, OverlayBase, OverlayCustom, OverlayPreset, OverlayStyled, type OverlayStyledDiv, type OverlayType, PageWave, StyleTransition, type TimingType, type TransitionStyle };
|