-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
78 lines (71 loc) · 1.46 KB
/
style.css
File metadata and controls
78 lines (71 loc) · 1.46 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
:root {
--color-texto: black;
--color-mitad: rebeccapurple;
}
* {
margin: 0;
padding: 0;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
body, html {
overflow-x: hidden;
overflow-y: hidden;
position: relative;
width: 100vw;
height: 100vh;
}
.mitad {
width: 50vw;
height: 100vh;
background: rebeccapurple;
position: absolute;
z-index: 0;
overflow: hidden;
}
.texto {
font-weight: 700;
color: var(--color-texto);
font-size: 200px;
width: -webkit-max-content;
width: -moz-max-content;
width: max-content;
position: absolute;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
height: 100%;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-animation: 5s moveText linear forwards infinite;
animation: 5s moveText linear forwards infinite;
z-index: -1;
}
.outline {
outline-width: 3px;
color: transparent;
-webkit-text-stroke: 4px var(--color-texto);
z-index: 2;
}
@-webkit-keyframes moveText {
0% {
-webkit-transform: translateX(-100%);
transform: translateX(-100%);
}
100% {
-webkit-transform: translateX(100vw);
transform: translateX(100vw);
}
}
@keyframes moveText {
0% {
-webkit-transform: translateX(-100%);
transform: translateX(-100%);
}
100% {
-webkit-transform: translateX(100vw);
transform: translateX(100vw);
}
}
/*# sourceMappingURL=style.css.map */