File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 3
3
import Button from ' ./Button.vue' ;
4
4
import Content from ' ./Content.vue' ;
5
5
import AnimationForm from ' ./AnimationForm.vue' ;
6
- import jsCssAnimations from ' ../../../js-css-animations/js-css-animations' ;
7
6
8
7
defineEmits ([' resetAnimation' ]);
9
8
</script >
10
9
11
10
<script >
12
11
export default {
13
12
props: {
13
+ animationApi: Function ,
14
14
animationFn: Function ,
15
15
animationName: String ,
16
16
title: String ,
20
20
fieldsList: Array ,
21
21
},
22
22
mounted () {
23
+ const jsCssAnimations = this .animationApi ();
23
24
this .animationFn ();
24
25
jsCssAnimations .init .fade ({
25
26
trigger: ` .customize--anchor__${ this .animationName } ` ,
Original file line number Diff line number Diff line change 1
1
<script setup>
2
- import { reactive , ref , toRefs } from ' vue' ;
2
+ import { ref } from ' vue' ;
3
3
4
4
defineEmits ([' changeField' ]);
5
5
Original file line number Diff line number Diff line change @@ -110,14 +110,18 @@ aside: false
110
110
});
111
111
document .querySelector (triggerSelector).click ();
112
112
})
113
+ }
113
114
115
+ function animationApi () {
116
+ return jsCssAnimations;
114
117
}
115
118
116
119
</script >
117
120
118
121
# Examples
119
122
120
123
<Example
124
+ : animation-api ="animationApi"
121
125
: animation-fn ="slideAnimations"
122
126
: animation-name ="'slide'"
123
127
: title ="'Slide Animations'"
@@ -150,6 +154,7 @@ jsCssAnimations.init.slideRight({
150
154
</Example >
151
155
152
156
<Example
157
+ : animation-api ="animationApi"
153
158
: animation-fn ="fadeAnimation"
154
159
: animation-name ="'fade'"
155
160
: title ="'Fade In / Out'"
@@ -177,6 +182,7 @@ jsCssAnimations.init.fade({
177
182
</Example >
178
183
179
184
<Example
185
+ : animation-api ="animationApi"
180
186
: animation-fn ="collapseAnimation"
181
187
: animation-name ="'collapse'"
182
188
: title ="'Collapse/Expand'"
You can’t perform that action at this time.
0 commit comments