Skip to content

Commit 5e2f7d0

Browse files
author
Di Wang
committed
add animation for login and lock
1 parent 1ae4293 commit 5e2f7d0

File tree

2 files changed

+39
-3
lines changed

2 files changed

+39
-3
lines changed

src/app/page/lock/lock.component.css

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,24 @@
1616
width: 100%;
1717
padding: 20px;
1818
margin-top: 70px;
19+
top: -60px;
20+
-webkit-animation-name: card;
21+
-moz-animation-name: card;
22+
-o-animation-name: card;
23+
animation-name: card;
24+
-webkit-animation-duration: 600ms;
25+
-moz-animation-duration: 600ms;
26+
-o-animation-duration: 600ms;
27+
animation-duration: 600ms;
28+
-webkit-animation-fill-mode: forwards;
29+
-moz-animation-fill-mode: forwards;
30+
-o-animation-fill-mode: forwards;
31+
animation-fill-mode: forwards;
32+
}
33+
34+
@-webkit-keyframes card {
35+
from {top: -40px;}
36+
to {top: 0;}
1937
}
2038

2139
.card-header img{
@@ -48,7 +66,7 @@
4866
padding: 3px 30px;
4967
}
5068

51-
/*.mat-raised-button.mat-button-focus-overlay, .mat-button-ripple{*/
52-
/*border-radius: 30px;*/
53-
/*}*/
69+
.card-footer button:hover{
70+
box-shadow: 0 14px 26px -12px rgba(233, 30, 99, 0.42), 0 4px 23px 0 rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(233, 30, 99, 0.2);
71+
}
5472

src/app/page/login/login.component.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,24 @@
1111
flex-direction: column;
1212
align-items: center;
1313
margin-top: 90px;
14+
top: -90px;
15+
-webkit-animation-name: card;
16+
-moz-animation-name: card;
17+
-o-animation-name: card;
18+
animation-name: card;
19+
-webkit-animation-duration: 600ms;
20+
-moz-animation-duration: 600ms;
21+
-o-animation-duration: 600ms;
22+
animation-duration: 600ms;
23+
-webkit-animation-fill-mode: forwards;
24+
-moz-animation-fill-mode: forwards;
25+
-o-animation-fill-mode: forwards;
26+
animation-fill-mode: forwards;
27+
}
28+
29+
@-webkit-keyframes card {
30+
from {top: -40px;}
31+
to {top: 0;}
1432
}
1533

1634
.card-header{

0 commit comments

Comments
 (0)