-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathslider.css
More file actions
77 lines (70 loc) · 1.35 KB
/
Copy pathslider.css
File metadata and controls
77 lines (70 loc) · 1.35 KB
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
74
75
76
77
body {font-family: 'Roboto Mono', monospace;}
img {vertical-align: top;max-width: 100%}
.slider-wrapper {
width: 480px;
margin: 60px auto 0;
position: relative;
z-index: 1;
}
.item-container {
width: 480px;
left: 2px;
height: 320px;
}
.item {
position: absolute;
filter: blur(5px);
top: 0;
left: 0;
opacity: 0;
transition: opacity .3s ease 0s, filter 2s ease .5s;
}
.item.active {
transition: opacity .3s ease .2s, filter 2s ease 0s;
filter: blur(0);
opacity: 1;
}
.nav {
top: 0;
left: 0;
position: absolute;
z-index: 2;
width: 100%;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
transform: translateY(-100%);
}
.prev, .next {
font-size: 32px;
line-height: 32px;
display: inline-block;
border-radius: 5px 5px 0 0;
padding: 0 20px 5px;
background: #055;
color: #fff;
cursor: pointer;
transition: all .3s ease;
}
.prev:hover, .next:hover {box-shadow: inset 0 0 0 4px rgba(255,255,255,.4);}
.prev:active, .next:active {box-shadow: inset 0 0 0 8px rgba(255,255,255,.4);}
.pagination {
padding: 0;
width: 100%;
display: flex;
justify-content: space-between;
}
.pagination li {
border-radius: 5px;
overflow: hidden;
list-style-type: none;
cursor: pointer;
opacity: .7;
filter: blur(5px);
transition: opacity .2s ease, filter .7s ease .2s;
}
.pagination li.active {
opacity: 1;
filter: blur(0);
}