-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
52 lines (34 loc) · 805 Bytes
/
index.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
body, html {
margin: 0;
padding: 0;
}
:root {
--x: 50%;
--y: 50%;
--TiltX : 0deg;
--TiltY : 0deg;
}
.body-container {
width: 100vw;
height: 100vh;
background: #0F0F0F;
display: grid;
place-items: center;
}
.text-container {
width: 70vh;
height: 70vh;
background: #232D3F;
border-radius: 15px;
white-space: pre-wrap;
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
word-wrap: break-word;
overflow: hidden;
color: #fff;
font-size: 0.8rem;
-webkit-mask-image: radial-gradient(circle at var(--x) var(--y), transparent 10%, black 100%);
transform: perspective(1000px) rotateX(var(--TiltX)) rotateY(var(--TiltY));
transition: transform 0.2s ease-out;
}