-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanimation.css
More file actions
62 lines (61 loc) · 972 Bytes
/
animation.css
File metadata and controls
62 lines (61 loc) · 972 Bytes
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
* {
margin: 0;
padding: 0;
}
body {
background-color: black;
color: white;
}
.container {
height: 200px;
/* display: flex;
justify-content: center;
align-items: center; */
position: relative;
}
.box {
background-color: wheat;
color: black;
height: 100px;
width: 100px;
font-size: 24px;
text-align: center;
animation-name: walk;
animation-duration: 5s;
position: absolute;
top: 10px;
}
.text-flow {
width: 800px;
height: 50px;
border: 1px solid beige;
border-radius: 10px;
background-color: rgba(43, 43, 43, 0.372);
margin-left: 80px;
white-space: nowrap;
overflow-x: hidden;
}
p {
padding: 10px;
font-size: 24px;
animation-name: moving;
animation-duration: 9s;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
@keyframes moving {
from {
margin-left: 800px;
}
to {
margin-left: -700px;
}
}
@keyframes walk {
from {
left: 0;
}
to {
left: 1000px;
}
}