-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcarousel.css
73 lines (73 loc) · 1.26 KB
/
carousel.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
.carousel {
width: 100%;
height: auto;
position: relative;
}
.carousel > .slide {
position: relative;
display: none;
}
.carousel > .slide.active {
display: block;
}
.carousel.transition-fade > .slide {
opacity: 0;
display: block;
height: 0;
}
.carousel.transition-fade > .slide.active {
position: relative;
top: 0;
opacity: 1;
z-index: 0;
height: auto;
}
.carousel.transition-fade > .slide.left {
position: absolute;
top: 0;
opacity: 0;
height: auto;
z-index: 1;
}
.carousel.transition-slide {
position: relative;
white-space: nowrap;
width: 100%;
height: auto;
overflow: hidden;
margin: 0;
font-size: 0;
}
.carousel.transition-slide > .slide {
vertical-align: top;
white-space: normal;
font-size: 100%;
display: none;
width: 100%;
}
.carousel.transition-slide > .slide.active {
display: block;
position: relative;
left: 0;
z-index: 2;
}
.carousel.transition-slide > .slide.left {
display: block;
position: absolute;
left: -100%;
top: 0;
z-index: 1;
}
.carousel.transition-slide > .slide.right {
display: block;
position: absolute;
left: 100%;
top: 0;
z-index: 0;
}
.carousel.transition-slide.backwards > .slide.left {
z-index: 0;
}
.carousel.transition-slide.backwards > .slide.right {
z-index: 1;
}