-
Notifications
You must be signed in to change notification settings - Fork 0
/
excess.css
69 lines (61 loc) · 1.56 KB
/
excess.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
@import url("https://fonts.googleapis.com/css2?family=Heebo:wght@400;600&family=Poppins:wght@100;500;600;800;900&family=Lobster+Two:ital,wght@0,400;0,700;1,400&display=swap");
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: "Poppins", sans-serif;
}
select:focus, input:focus, button:focus {
outline: none;
}
/* -------- BODY DISPLAY --------- */
body {
background-color: #222;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
/* -------- CLASS --------- */
.containering {
display: flex;
justify-content: center;
align-items: center;
}
.containering .box {
transform-style: preserve-3d;
animation: animate 7s ease-in-out infinite alternate;
}
.containering .box span {
background: linear-gradient(90deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5) 90%, transparent);
text-transform: uppercase;
line-height: 0.76em;
position: absolute;
color: #fff;
font-size: 3.5em;
white-space: nowrap;
font-weight: bold;
padding: 0px 10px;
transform-style: preserve-3d;
text-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
transform: translate(-50%, -50%) rotateX(calc(var(--i) * 22.5deg)) translateZ(109px);
}
.containering .box span i {
font-style: initial;
}
.containering .box span i:nth-child(1) {
color: #5c5fc4;
}
.containering .box span i:nth-child(2) {
color: #c4c15c;
}
@keyframes animate {
0% {
transform: perspective(500px) rotateX(0deg) rotate(5deg);
}
100% {
transform: perspective(50px) rotateX(360deg) rotate(5deg);
}
}
/* -------- MEDIA QUERY --------- */