Skip to content

Commit ac3bafa

Browse files
committed
update
1 parent 97a3187 commit ac3bafa

File tree

3 files changed

+54
-57
lines changed

3 files changed

+54
-57
lines changed

app/app.scss

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,6 @@
1616

1717
@import './css/animate.css';
1818

19-
.animateicon {
20-
color: red;
21-
animation-name: bounceInOpacity;
22-
animation-duration: 1s;
23-
animation-delay: 0.5s;
24-
}
25-
26-
.extra-bold {
27-
font-family: 'Assistant-ExtraBold', 'Assistant ExtraBold';
28-
font-weight: 800;
29-
}
30-
3119
.bold {
3220
font-family: 'Assistant-Bold', 'Assistant';
3321
font-weight: 700;
@@ -38,49 +26,6 @@
3826
font-weight: 600;
3927
}
4028

41-
@keyframes bounceInOpacity {
42-
from,
43-
20%,
44-
40%,
45-
60%,
46-
80%,
47-
to {
48-
-webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
49-
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
50-
}
51-
52-
0% {
53-
-webkit-transform: scale3d(0.3, 0.3, 0.3);
54-
transform: scale3d(0.3, 0.3, 0.3);
55-
}
56-
57-
20% {
58-
-webkit-transform: scale3d(1.1, 1.1, 1.1);
59-
transform: scale3d(1.1, 1.1, 1.1);
60-
}
61-
62-
40% {
63-
-webkit-transform: scale3d(0.9, 0.9, 0.9);
64-
transform: scale3d(0.9, 0.9, 0.9);
65-
}
66-
67-
60% {
68-
-webkit-transform: scale3d(1.03, 1.03, 1.03);
69-
transform: scale3d(1.03, 1.03, 1.03);
70-
}
71-
72-
80% {
73-
-webkit-transform: scale3d(0.97, 0.97, 0.97);
74-
transform: scale3d(0.97, 0.97, 0.97);
75-
}
76-
77-
to {
78-
-webkit-transform: scale3d(1, 1, 1);
79-
transform: scale3d(1, 1, 1);
80-
}
81-
}
82-
83-
8429
.hello-world {
8530
margin: 20;
8631
}

app/components/example/animate.vue

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<template>
2-
<Page class="page" loaded="pageLoaded" ref="page">
2+
<Page class="page" loaded="pageLoaded" ref="page">
33
<ActionBarSecond :title="'动画效果'"></ActionBarSecond>
44

5-
<GridLayout colums="*" rows="*" id="dd">
5+
<GridLayout colums="*" rows="*">
66
<Label class="animateicon" :text="msg" col="0" row="0" />
77
<Image class="animateicon" src="~/assets/images/NativeScript-Vue.png" />
88
</GridLayout>
@@ -26,4 +26,51 @@ export default {
2626
</script>
2727

2828
<style scoped lang="scss">
29+
.animateicon {
30+
color: red;
31+
animation-name: bounceInOpacity;
32+
animation-duration: 1s;
33+
animation-delay: 0.5s;
34+
}
35+
@keyframes bounceInOpacity {
36+
from,
37+
20%,
38+
40%,
39+
60%,
40+
80%,
41+
to {
42+
-webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
43+
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
44+
}
45+
46+
0% {
47+
-webkit-transform: scale3d(0.3, 0.3, 0.3);
48+
transform: scale3d(0.3, 0.3, 0.3);
49+
}
50+
51+
20% {
52+
-webkit-transform: scale3d(1.1, 1.1, 1.1);
53+
transform: scale3d(1.1, 1.1, 1.1);
54+
}
55+
56+
40% {
57+
-webkit-transform: scale3d(0.9, 0.9, 0.9);
58+
transform: scale3d(0.9, 0.9, 0.9);
59+
}
60+
61+
60% {
62+
-webkit-transform: scale3d(1.03, 1.03, 1.03);
63+
transform: scale3d(1.03, 1.03, 1.03);
64+
}
65+
66+
80% {
67+
-webkit-transform: scale3d(0.97, 0.97, 0.97);
68+
transform: scale3d(0.97, 0.97, 0.97);
69+
}
70+
71+
to {
72+
-webkit-transform: scale3d(1, 1, 1);
73+
transform: scale3d(1, 1, 1);
74+
}
75+
}
2976
</style>

app/components/project/home.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ export default {
3030
</script>
3131

3232
<style scoped lang="scss">
33+
.extra-bold {
34+
font-family: 'Assistant-ExtraBold', 'Assistant ExtraBold';
35+
font-weight: 800;
36+
}
37+
3338
#home {
3439
animation-name: bounceIn;
3540
}

0 commit comments

Comments
 (0)