-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcarousel.css
62 lines (51 loc) · 844 Bytes
/
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
.carousel {
position: relative;
height: 7em;
overflow: hidden;
}
.carousel .carousel-nav {
z-index: 1; /* Just enough to edge this above the content */
position: absolute;
top: 1.5em;
}
.carousel .carousel-nav .fa {
font-size: 4em;
color: lightgray;
}
.carousel .carousel-nav .fa:hover {
color: gray;
cursor: pointer;
}
.carousel .carousel-nav.previous {
left: 1em;
}
.carousel .carousel-nav.next {
right: 1em;
}
.carousel ol {
list-style: none;
margin: 0;
padding: 0;
}
.carousel li {
margin: 0;
padding: 0;
height: 7em;
position: absolute;
top: 7em;
width: 100%;
}
.carousel li.current {
top: 0;
}
/* Animation */
.carousel li {
opacity: 0;
transform: scale(0);
transition: 0.5s;
}
.carousel li.current {
opacity: 1;
transform: scale(1);
transition: 0.5s;
}