-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.css~
executable file
·66 lines (63 loc) · 1.38 KB
/
home.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
/*carousel*/
.carousel{
overflow:hidden;
width:100%;
}
.panes{
list-style:none;
position:relative;
width:300%; /* Number of panes * 100% */
overflow:hidden; /* This is used solely to clear floats, it does not add functionality. */
-webkit-animation:carousel 15s infinite;
-moz-animation:carousel 15s infinite;
-ms-animation:carousel 15s infinite;
-o-animation:carousel 15s infinite;
animation:carousel 15s infinite;
}
.panes > li{
position:relative;
float:left;
width:33%; /* 100 / number of panes */
}
.carousel {
display:block;
width:75%;
max-width:100%;
margin-top:20px;
margin-left:auto;
margin-right:15%;
}
.carousel h2{
font-size:1em;
padding:0.5em;
position:absolute;
right:10px;
bottom:10px;
left:10px;
text-align:right;
color:#fff;
background-color:rgba(0,0,0,0.75);
}
@-webkit-keyframes carousel{
0% { left:0; }
24% { left:0; }
25% { left:-100%; }
49% { left:-100%; }
50% { left:-200%; }
74% { left:-200%; }
75% { left:-100%; }
99% { left:-100%; }
100% { left:0; }
}
@keyframes carousel{
0% { left:0; }
24% { left:0; }
25% { left:-100%; }
49% { left:-100%; }
50% { left:-200%; }
74% { left:-200%; }
75% { left:-100%; }
99% { left:-100%; }
100% { left:0; }
}
/*end of carousel*/