forked from SheepTester/hello-world
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflashcards.css
More file actions
127 lines (127 loc) · 2.17 KB
/
flashcards.css
File metadata and controls
127 lines (127 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
body {
font-family: 'Roboto', sans-serif;
background: #212121;
color: rgba(255, 255, 255, 0.8);
}
textarea {
font: inherit;
}
#status {
position: fixed;
bottom: 0;
left: 0;
margin: 20px;
font-size: 20px;
color: rgba(255, 255, 255, 0.5);
}
.card {
background: #333;
width: 600px;
height: 350px;
position: fixed;
top: 0;
bottom: 0;
right: 0;
left: 0;
margin: auto;
box-shadow: 0 1px 3px rgba(0,0,0,0.3);
opacity: 0;
}
.card::after {
content: "Press SPACE to flip; to continue: LEFT ARROW if wrong, RIGHT ARROW if right";
color: rgba(255, 255, 255, 0.3);
font-size: 15px;
position: absolute;
bottom: 10px;
left: 0;
display: block;
right: 0;
text-align: center;
}
#word {
font-size: 50px;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}
#def {
box-sizing: border-box;
padding: 0 40px;
font-size: 20px;
display: flex;
align-items: center;
text-align: center;
}
.flipin {
opacity: 1;
animation: flipin 0.5s cubic-bezier(0,0,0,1) forwards;
}
@keyframes flipin {
0% {
transform: perspective(1000px) rotateY(90deg);
}
50% {
transform: perspective(1000px) rotateY(90deg);
}
100% {
transform: perspective(1000px) rotateY(0deg);
}
}
.flipout {
opacity: 1;
animation: flipout 0.5s cubic-bezier(1,0,1,1) forwards;
}
@keyframes flipout {
0% {
transform: perspective(1000px) rotateY(0deg);
}
50% {
transform: perspective(1000px) rotateY(-90deg);
}
100% {
transform: perspective(1000px) rotateY(-90deg);
}
}
.swapout {
opacity: 1;
animation: swapout 0.2s cubic-bezier(1,0,1,1) forwards;
}
@keyframes swapout {
0% {
transform: translateX(0);
}
100% {
transform: translateX(-100vw);
}
}
.fadeout {
opacity: 1;
animation: fadeout 0.2s cubic-bezier(1,0,1,1) forwards;
}
.fadeout.hidefirst {
opacity: 0;
animation: none;
}
@keyframes fadeout {
0% {
transform: scale(1);
opacity: 1;
}
100% {
transform: scale(0.5);
opacity: 0;
}
}
.swapin {
opacity: 1;
animation: swapin 0.2s cubic-bezier(0,0,0,1) forwards;
}
@keyframes swapin {
0% {
transform: translateX(100vw);
}
100% {
transform: translateX(0);
}
}