@enso-ui/transitions 2.0.4 → 2.0.8
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/package.json +2 -2
- package/src/transitions/Fade.vue +10 -7
- package/src/transitions/FadeDown.vue +5 -3
- package/src/transitions/FadeLeft.vue +6 -4
- package/src/transitions/FadeRight.vue +9 -7
- package/src/transitions/FadeUp.vue +9 -7
- package/src/transitions/HorizontalFade.vue +15 -13
- package/src/transitions/HorizontalSlide.vue +15 -13
- package/src/transitions/SlideDown.vue +6 -4
- package/src/transitions/SlideLeft.vue +9 -7
- package/src/transitions/SlideRight.vue +9 -7
- package/src/transitions/SlideUp.vue +9 -7
- package/src/transitions/Zoom.vue +9 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enso-ui/transitions",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
4
4
|
"description": "A collection of Vue transitions",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"autoprefixer": "^9.6.1",
|
|
32
32
|
"babel-eslint": "^10.0.1",
|
|
33
33
|
"cross-env": "^6.0.0",
|
|
34
|
-
"eslint": "^7.0",
|
|
34
|
+
"eslint": "^7.0.0",
|
|
35
35
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
36
36
|
"eslint-plugin-vue": "^8.0.3"
|
|
37
37
|
}
|
package/src/transitions/Fade.vue
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
<transition v-bind="$attrs"
|
|
3
|
+
appear
|
|
4
|
+
mode="in-out"
|
|
5
|
+
enter-active-class="animate__animated animate__fadeIn"
|
|
6
|
+
leave-active-class="animate__animated animate__fadeOut">
|
|
7
|
+
<slot/>
|
|
8
|
+
</transition>
|
|
8
9
|
</template>
|
|
9
10
|
|
|
10
11
|
<script>
|
|
12
|
+
import 'animate.css';
|
|
13
|
+
|
|
11
14
|
export default {
|
|
12
|
-
|
|
15
|
+
name: 'Fade',
|
|
13
16
|
};
|
|
14
17
|
</script>
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<transition v-bind="$attrs"
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
appear
|
|
4
|
+
enter-active-class="animate__animated animate__fadeInDown"
|
|
5
|
+
leave-active-class="animate__animated animate__fadeOutDown">
|
|
6
6
|
<slot/>
|
|
7
7
|
</transition>
|
|
8
8
|
</template>
|
|
9
9
|
|
|
10
10
|
<script>
|
|
11
|
+
import 'animate.css';
|
|
12
|
+
|
|
11
13
|
export default {
|
|
12
14
|
name: 'FadeDown',
|
|
13
15
|
};
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<transition v-bind="$attrs"
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
appear
|
|
4
|
+
enter-active-class="animate__animated animate__fadeInLeft"
|
|
5
|
+
leave-active-class="animate__animated animate__fadeOutLeft">
|
|
6
6
|
<slot/>
|
|
7
7
|
</transition>
|
|
8
8
|
</template>
|
|
9
9
|
|
|
10
10
|
<script>
|
|
11
|
+
import 'animate.css';
|
|
12
|
+
|
|
11
13
|
export default {
|
|
12
|
-
|
|
14
|
+
name: 'FadeLeft',
|
|
13
15
|
};
|
|
14
16
|
</script>
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
<transition v-bind="$attrs"
|
|
3
|
+
appear
|
|
4
|
+
enter-active-class="animate__animated animate__fadeInRight"
|
|
5
|
+
leave-active-class="animate__animated animate__fadeOutRight">
|
|
6
|
+
<slot/>
|
|
7
|
+
</transition>
|
|
8
8
|
</template>
|
|
9
9
|
|
|
10
10
|
<script>
|
|
11
|
+
import 'animate.css';
|
|
12
|
+
|
|
11
13
|
export default {
|
|
12
|
-
|
|
14
|
+
name: 'FadeRight',
|
|
13
15
|
};
|
|
14
16
|
</script>
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
<transition v-bind="$attrs"
|
|
3
|
+
appear
|
|
4
|
+
enter-active-class="animate__animated animate__fadeInUp"
|
|
5
|
+
leave-active-class="animate__animated animate__fadeOutUp">
|
|
6
|
+
<slot/>
|
|
7
|
+
</transition>
|
|
8
8
|
</template>
|
|
9
9
|
|
|
10
10
|
<script>
|
|
11
|
+
import 'animate.css';
|
|
12
|
+
|
|
11
13
|
export default {
|
|
12
|
-
|
|
14
|
+
name: 'FadeUp',
|
|
13
15
|
};
|
|
14
16
|
</script>
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
<transition v-bind="$attrs"
|
|
3
|
+
appear
|
|
4
|
+
:enter-active-class="`animate__animated animate__${rtl ? 'fadeInRight' : 'fadeInLeft'}`"
|
|
5
|
+
:leave-active-class="`animate__animated animate__${rtl ? 'fadeOutRight' : 'fadeOutLeft'}`">
|
|
6
|
+
<slot/>
|
|
7
|
+
</transition>
|
|
8
8
|
</template>
|
|
9
9
|
|
|
10
10
|
<script>
|
|
11
|
+
import 'animate.css';
|
|
12
|
+
|
|
11
13
|
export default {
|
|
12
|
-
|
|
14
|
+
name: 'HorizontalFade',
|
|
13
15
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
props: {
|
|
17
|
+
rtl: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: false,
|
|
20
|
+
},
|
|
21
|
+
},
|
|
20
22
|
};
|
|
21
23
|
</script>
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
<transition v-bind="$attrs"
|
|
3
|
+
appear
|
|
4
|
+
:enter-active-class="`animate__animated animate__${rtl ? 'slideInRight' : 'slideInLeft'}`"
|
|
5
|
+
:leave-active-class="`animate__animated animate__${rtl ? 'slideOutRight' : 'slideOutLeft'}`">
|
|
6
|
+
<slot/>
|
|
7
|
+
</transition>
|
|
8
8
|
</template>
|
|
9
9
|
|
|
10
10
|
<script>
|
|
11
|
+
import 'animate.css';
|
|
12
|
+
|
|
11
13
|
export default {
|
|
12
|
-
|
|
14
|
+
name: 'HorizontalSlide',
|
|
13
15
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
props: {
|
|
17
|
+
rtl: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: false,
|
|
20
|
+
},
|
|
21
|
+
},
|
|
20
22
|
};
|
|
21
23
|
</script>
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<transition v-bind="$attrs"
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
appear
|
|
4
|
+
enter-active-class="animate__animated animate__slideInDown"
|
|
5
|
+
leave-active-class="animate__animated animate__slideOutUp">
|
|
6
6
|
<slot/>
|
|
7
7
|
</transition>
|
|
8
8
|
</template>
|
|
9
9
|
|
|
10
10
|
<script>
|
|
11
|
+
import 'animate.css';
|
|
12
|
+
|
|
11
13
|
export default {
|
|
12
|
-
|
|
14
|
+
name: 'SlideDown',
|
|
13
15
|
};
|
|
14
16
|
</script>
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
<transition v-bind="$attrs"
|
|
3
|
+
appear
|
|
4
|
+
enter-active-class="animate__animated animate__slideInLeft"
|
|
5
|
+
leave-active-class="animate__animated animate__slideOutLeft">
|
|
6
|
+
<slot/>
|
|
7
|
+
</transition>
|
|
8
8
|
</template>
|
|
9
9
|
|
|
10
10
|
<script>
|
|
11
|
+
import 'animate.css';
|
|
12
|
+
|
|
11
13
|
export default {
|
|
12
|
-
|
|
14
|
+
name: 'SlideLeft',
|
|
13
15
|
};
|
|
14
16
|
</script>
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
<transition v-bind="$attrs"
|
|
3
|
+
appear
|
|
4
|
+
enter-active-class="animate__animated animate__slideInRight"
|
|
5
|
+
leave-active-class="animate__animated animate__slideOutRight">
|
|
6
|
+
<slot/>
|
|
7
|
+
</transition>
|
|
8
8
|
</template>
|
|
9
9
|
|
|
10
10
|
<script>
|
|
11
|
+
import 'animate.css';
|
|
12
|
+
|
|
11
13
|
export default {
|
|
12
|
-
|
|
14
|
+
name: 'SlideRight',
|
|
13
15
|
};
|
|
14
16
|
</script>
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
<transition v-bind="$attrs"
|
|
3
|
+
appear
|
|
4
|
+
enter-active-class="animate__animated animate__slideInUp"
|
|
5
|
+
leave-active-class="animate__animated animate__slideOutDown">
|
|
6
|
+
<slot/>
|
|
7
|
+
</transition>
|
|
8
8
|
</template>
|
|
9
9
|
|
|
10
10
|
<script>
|
|
11
|
+
import 'animate.css';
|
|
12
|
+
|
|
11
13
|
export default {
|
|
12
|
-
|
|
14
|
+
name: 'SlideUp',
|
|
13
15
|
};
|
|
14
16
|
</script>
|
package/src/transitions/Zoom.vue
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
<transition v-bind="$attrs"
|
|
3
|
+
appear
|
|
4
|
+
enter-active-class="animate__animated animate__zoomIn"
|
|
5
|
+
leave-active-class="animate__animated animate__zoomOut">
|
|
6
|
+
<slot/>
|
|
7
|
+
</transition>
|
|
8
8
|
</template>
|
|
9
9
|
|
|
10
10
|
<script>
|
|
11
|
+
import 'animate.css';
|
|
12
|
+
|
|
11
13
|
export default {
|
|
12
|
-
|
|
14
|
+
name: 'Zoom',
|
|
13
15
|
};
|
|
14
16
|
</script>
|