-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
51 lines (45 loc) · 813 Bytes
/
styles.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
body {
margin: 0;
padding: 0;
background-color: #f0f0f0;
overflow: hidden;
}
.container {
text-align: center;
padding: 100px;
}
.highlight-moving-text {
font-size: 36px;
display: inline-block;
}
.highlight {
background-color: #ffcc00;
padding: 5px 10px;
border-radius: 5px;
animation: highlightText 2s infinite alternate;
}
@keyframes highlightText {
0% {
background-color: #ffcc00;
color: #000;
}
100% {
background-color: #ff0000;
color: #fff;
}
}
.moving-object {
width: 50px;
height: 50px;
background-color: #3498db;
position: absolute;
animation: moveObject 4s linear infinite;
}
@keyframes moveObject {
0% {
left: 0;
}
100% {
left: calc(100% - 50px);
}
}