-
Notifications
You must be signed in to change notification settings - Fork 0
/
ticker.css
59 lines (51 loc) · 1.17 KB
/
ticker.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
/* see: https://codepen.io/code-boxx/pen/KKJOMJV */
/* (A1) FORCE ALL ITEMS INTO SINGLE ROW */
.hmove {
display: inline-block;
}
.hitem {
width: 100%;
flex-shrink: 0;
}
.hwrap {
overflow: hidden;
width: 100%; /* highly recommended */
}
@keyframes tickerh {
0% { transform: translatex(0); visibility: visible;}
100% { transform: translatex(-100%); }
}
.hmove {
/* animation: tickerh linear 200s infinite; */
animation-iteration-count: infinite;
animation-timing-function: linear;
animation-name: tickerh;
/* animation-duration viene sovrascritto dal codice javascript
che calcola la durata in base alla lunghezza del testo */
animation-duration: 60s;
}
/* (A3) COSMETICS - NOT IMPORTANT */
.hwrap {
font-family: "Courier New", Courier, monospace;
font-size: 25px;
color: #ffffff;
background: #003c71;
position: fixed;
bottom: 0;
left: 0;
overflow: hidden;
}
.hitem {
display: inline-block;
padding: 2px;
text-align: center;
padding-left: 1000px;
}
.hwrap, .hwrap * { box-sizing: border-box; }
.hmove{
box-sizing:border-box;
font-family:arial,sans-serif;
/*max-width:6000px;*/
white-space: nowrap;
/* padding-right: 100%;*/
}