-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtextAnimation.css
More file actions
128 lines (128 loc) · 2.03 KB
/
Copy pathtextAnimation.css
File metadata and controls
128 lines (128 loc) · 2.03 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
128
.main {
height: 10vh;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}
h1 {
text-align: center;
text-transform: uppercase;
color: #f1faee;
font-size: 4rem;
}
.roller {
height: 4.125rem;
line-height: 4rem;
position: relative;
overflow: hidden;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
color: #f1f5fc;
}
#spare-time {
font-size: 1rem;
font-style: italic;
letter-spacing: 1rem;
margin-top: 0;
color: #f8ffff;
}
.roller #rolltext {
position: absolute;
top: 0;
animation: slide 5s infinite;
}
@keyframes slide {
0% {
top: 0;
}
25% {
top: -4rem;
}
50% {
top: -8rem;
}
72.5% {
top: -12.25rem;
}
}
@media screen and (max-width: 600px) {
h1 {
text-align: center;
text-transform: uppercase;
color: #f1faee;
font-size: 2.125rem;
}
.roller {
height: 2.6rem;
line-height: 2.125rem;
}
#spare-time {
font-size: 1rem;
letter-spacing: 0.1rem;
}
.roller #rolltext {
animation: slide-mob 5s infinite;
}
@keyframes slide-mob {
0% {
top: 0;
}
25% {
top: -2.125rem;
}
50% {
top: -4.25rem;
}
72.5% {
top: -6.375rem;
}
}
}
#h1 {
color: #fff;
font-size: 50px;
font-weight: 700;
letter-spacing: 7px;
cursor: pointer;
height: 40%;
}
#h1 {
transition: 0.5s ease-out;
}
#h1:hover {
color: #fff;
text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 40px #fff;
}
div.at-container {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.at-item {
color: #000;
font-weight: 700;
font-size: 3em;
animation-name: focus-in-contract;
animation-duration: 2.2s;
animation-timing-function: ease;
animation-delay: 0.2s;
animation-iteration-count: infinite;
animation-direction: normal;
animation-fill-mode: none;
}
@keyframes focus-in-contract {
0% {
letter-spacing: 1em;
filter: blur(12px);
opacity: 0;
}
100% {
filter: blur(0);
opacity: 1;
}
}