Skip to content
This repository was archived by the owner on Aug 26, 2024. It is now read-only.

Commit 02bba14

Browse files
committed
applied styling to animation preview
1 parent 9d9f5ca commit 02bba14

10 files changed

+34
-579
lines changed

demo/report.20200526.101148.3406.0.001.json

-552
This file was deleted.

demo/src/assets/animations.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default [
3636
class: 'tilt-in'
3737
},
3838
{
39-
name: 'Flip in',
40-
class: 'flip-in'
39+
name: 'Flip X',
40+
class: 'flip-x'
4141
}
4242
];

demo/src/components/Content.vue

+16-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
<template>
2-
<div>
3-
Lorem ipsum dolor sit amet consectetur adipisicing elit. Nisi iste harum
4-
animi quidem rem rerum laboriosam corporis dolore sit aut consequatur,
5-
deleniti numquam placeat eveniet laborum totam sunt sapiente modi enim quo.
6-
Minima, nesciunt natus amet perspiciatis incidunt ipsum veritatis qui ipsa
7-
sunt velit vel, dolores eos, necessitatibus laborum quia? Nisi, totam libero
8-
consequatur autem nobis ipsa provident neque cupiditate animi dolorem dolore
9-
perspiciatis ipsum nesciunt qui voluptas nam? Saepe?
2+
<div class="dummy">
3+
Lorem
104
</div>
115
</template>
126

@@ -16,4 +10,17 @@ export default {
1610
};
1711
</script>
1812

19-
<style scoped></style>
13+
<style scoped>
14+
.dummy{
15+
width: 300px;
16+
margin: auto;
17+
display:flex;
18+
align-items:center;
19+
justify-content:center;
20+
background:#44a1df;
21+
font-size:40px;
22+
height:300px;
23+
color:white;
24+
border-radius:10px;
25+
}
26+
</style>

dist/index.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/flip-in.css

-11
This file was deleted.

src/flip-x.css

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.flip-x-enter,
2+
.flip-x-leave-to{
3+
transform: rotateY(-80deg);
4+
opacity: 0;
5+
}
6+
7+
.flip-x-enter-active,
8+
.flip-x-leave-active{
9+
transition: transform 0.5s, opacity 0.3s;
10+
}
11+

src/roll-in-left.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* roll in animation */
22
.roll-in-left-enter,
33
.roll-in-left-leave-to{
4-
transform: translateX(-800px) rotate(-540deg);
4+
transform: translateX(-500px) rotate(-200deg);
55
opacity: 0;
66
}
77

src/rotate.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88

99
.rotate-enter-active,
1010
.rotate-leave-active{
11-
transition: transform 0.3s, opacity 0.5s ;
11+
transition: transform 0.7s, opacity 0.5s ;
1212
}

src/scale-in.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/* scalle in animation */
33
.scale-in-enter,
44
.scale-in-leave-to{
5-
transform: scale(0);
5+
transform: scale(0.88);
66
opacity: 0;
77
}
88

src/tilt-in.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88

99
.tilt-in-enter-active,
1010
.tilt-in-leave-active{
11-
transition: transform 0.3s, opacity 0.5s ;
11+
transition: ease-out transform 0.4s, opacity 0.3s ;
1212
}

0 commit comments

Comments
 (0)