Skip to content

Commit a5c7950

Browse files
committed
add animation effect
1 parent 460044e commit a5c7950

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

css/app.css

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,42 @@ body {
6464
color: #000;
6565
font-size: 14px;
6666
background-color: #fff;
67+
}
68+
69+
@-webkit-keyframes fadeInDown {
70+
0% {
71+
opacity: 0;
72+
-webkit-transform: translateY(-20px);
73+
}
74+
75+
100% {
76+
opacity: 1;
77+
-webkit-transform: translateY(0);
78+
}
79+
}
80+
81+
@keyframes fadeInDown {
82+
0% {
83+
opacity: 0;
84+
transform: translateY(-20px);
85+
}
86+
87+
100% {
88+
opacity: 1;
89+
transform: translateY(0);
90+
}
91+
}
92+
93+
.button {
94+
-webkit-animation-fill-mode: both;
95+
animation-fill-mode: both;
96+
-webkit-animation-duration: 0.8s;
97+
animation-duration: 0.8s;
98+
-webkit-animation-name: fadeInDown;
99+
animation-name: fadeInDown;
100+
}
101+
102+
.button {
103+
-webkit-animation-duration: 0.4s;
104+
animation-duration: 0.4s;
67105
}

0 commit comments

Comments
 (0)