-
Notifications
You must be signed in to change notification settings - Fork 0
/
credit_marquee.css
80 lines (73 loc) · 1.63 KB
/
credit_marquee.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
70
71
72
73
74
75
76
77
78
79
80
body {
/*
font-family: Adjust as needed
color: Adjust as needed
*/
margin: 0;
padding: 0;
font-family: Kalam;
color: white;
}
.container {
/*
Adjust as needed, this will place the marquee center of the screen.
Configured on a resoultion of 1920x1080.
(Second commented is configured to display to the right)
*/
/* margin-top: 40px; */
/* margin-left: 900px; */
margin-top: -50px;
margin-left: 1350px;
}
.marquee img {
width: 150px;
height: 150px;
border-radius: 50%;
}
.marquee-container {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
overflow: hidden;
}
.marquee {
/*
.marquee: This is the background box for the scrolling text
width: Adjust as needed
height: Adjust as needed
background-color: Adjust as needed; fourth number is the opacity value
*/
display: flex;
position: relative;
overflow: hidden;
width: 500px;
height: 800px;
padding: 20px 10px;
margin: 20px auto;
border-radius: 25px;
background-color: rgba(170, 93, 213, 0.5);
text-align: center;
justify-content: space-around;
}
.marquee p {
/*
font-size: Font size of the names, increase or decrease the number to your liking.
font-weight: Options: 100, 200, 300, 400, 500, 600, 700, 800, 900.
margin: Increase or decrease the *px value, this takes care of the space between the blocks.
animation: Increase or decrease the *s value to set how fast the text needs to scroll.
*/
font-size: 25px;
font-weight: 300;
margin: 0 0 40px 0;
white-space: pre-line;
animation: marquee 45s linear infinite;
}
@keyframes marquee {
0% {
transform: translateY(100%);
}
100% {
transform: translateY(-200%);
}
}