-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathslidecss.css
71 lines (69 loc) · 1.35 KB
/
slidecss.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
<style type="text/css">
.slider {
margin-top: 0px;
max-width:100%;
height:85%;
position: relative;
}
.slide1,.slide2,.slide3,.slide4,.slide5 ,.slide6 {
position: absolute;
width: 100%;
height: 85%;
}
.slide1 {
background: url('barca.jpg')no-repeat center;
background-size: cover;
animation:fade1 20s infinite;
-webkit-animation:fade1 20s infinite;
}
.slide2 {
background: url('basketball.jpg')no-repeat center;
background-size: cover;
animation:fade2 20s infinite;
-webkit-animation:fade2 20s infinite;
}
.slide3 {
background: url('volleyball.jpg')no-repeat center;
background-size: cover;
animation:fade3 20s infinite;
-webkit-animation:fade3 20s infinite;
}
.slide4 {
background: url('swimming.jpg')no-repeat center;
background-size: cover;
animation:fade4 20s infinite;
-webkit-animation:fade4 20s infinite;
}
@keyframes fade1
{
0% {opacity:1}
25% { opacity: 0}
50% { opacity: 0}
75% { opacity: 0}
100% { opacity: 1}
}
@keyframes fade2
{
0% {opacity:0}
25% { opacity: 1}
50% { opacity: 0}
75% { opacity: 0}
100% { opacity: 0}
}
@keyframes fade3
{
0% {opacity:0}
25% { opacity: 0}
50% { opacity: 1}
75% { opacity: 0}
100% { opacity: 0}
}
@keyframes fade4
{
0% {opacity:0}
25% { opacity: 0}
50% { opacity: 0}
75% { opacity: 1}
100% { opacity: 0}
}
</style>