-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
105 lines (102 loc) · 2.23 KB
/
style.css
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
.rw-words span {
animation: rotateWords 35s linear infinite 0s;
}
.rw-words span::after {
content: "|";
animation: flicker 0.6s linear infinite 0s;
}
.rw-words span:nth-child(2) {
animation-delay: 5s;
}
.rw-words span:nth-child(3) {
animation-delay: 10s;
}
.rw-words span:nth-child(4) {
animation-delay: 15s;
}
.rw-words span:nth-child(5) {
animation-delay: 20s;
}
.rw-words span:nth-child(6) {
animation-delay: 25s;
}
.rw-words span:nth-child(7) {
animation-delay: 30s;
}
@keyframes rotateWords {
0% { opacity: 0; animation-timing-function: ease-in-out; width: 0px; }
10% { opacity: 0; width: 0; }
11% { opacity: 1; width: 0; }
20% { opacity: 1; width: 100%; }
26% { opacity: 1; width: 0; }
27% { opacity: 0; width: 0; }
100% { opacity: 0; }
}
@keyframes flicker {
0% { opacity: 0; animation-timing-function: ease-in-out; }
50% { opacity: 1; }
100% { opacity: 0; }
}
@media screen and (max-width:21em) {
.typewrite {
font-size: 40px;
}
}
@media screen and (min-width:21em) and (max-width:30em) {
.typewrite {
font-size: 48px;
}
}
@media screen and (min-width:30em) and (max-width:60em){
.typewrite {
font-size: 72px;
}
}
@media screen and (min-width:60em){
.typewrite {
font-size: 96px;
}
}
/* CHECKED STATE STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.more-container [type="checkbox"] {
opacity: 0;
}
.more-container label {
display: block;
width: 100%;
height: 3em;
cursor: pointer;
position: absolute;
top: 0;
transition: top .45s cubic-bezier(.44, .99, .48, 1);
}
.more-container label:before,
.more-container label:after {
position: absolute;
}
.more-container label:before {
content: 'More';
left: 10px;
}
.more-container label:after {
content: '⇣';
right: 10px;
-webkit-animation: sudo .85s linear infinite alternate;
animation: sudo .85s linear infinite alternate;
}
.more-container p {
display: none;
}
[type="checkbox"]:checked ~ p {
display: block;
}
.more-container>[type="checkbox"]:checked + label {
top: 98%;
}
.more-container>[type="checkbox"]:checked + label:before {
content: 'Less';
}
.more-container>[type="checkbox"]:checked + label:after {
content: '⇡';
}