-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcarousel.css
55 lines (49 loc) · 959 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
.carousel-wrapper{
height: 100%;
width: 100%;
position:relative;
margin:0 auto;
}
.carousel-item{
position:absolute;
top:0;
bottom:0;
left:0;
right:0;
padding:25px 50px;
opacity:0;
transition: all 0.5s ease-in-out;
}
.arrow{
border: solid rgb(183, 149, 83);
border-width: 0 3px 3px 0;
display: inline-block;
padding: 12px;
}
.arrow-prev{
left: -30px;
position:absolute;
top:50%;
transform:translateY(-50%) rotate(135deg);
}
.arrow-next{
right: -30px;
position:absolute;
top:50%;
transform:translateY(-50%) rotate(-45deg);
}
.light{
color:white;
}
@media (max-width: 480px) {
.arrow, .light .arrow {
background-size: 10px;
background-position: 10px 50%;
}
}
.carousel-item {
z-index: 2;
opacity: 1;
background:url('https://ddragon.leagueoflegends.com/cdn/img/champion/splash/Ahri_0.jpg');
background-size:cover;
}