-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslide.css
85 lines (84 loc) · 1.46 KB
/
slide.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
74
75
76
77
78
79
80
81
82
83
84
85
.hide {
display: none;
}
.menu-content {
height: 100px;
border: 1px solid red;
}
.item {
/*display: inline-block;*/
/*opacity: 0.6;*/
filter: grayscale(100%);
}
.item.highlight {
filter: initial;
/*opacity: 1;*/
}
.item.highlight img {
width: 150px;
height: 150px;
}
img {
/*transition 这个 css 指定了某个属性发生变化的时候自动使用动画效果和动画时间*/
transition: width 1s, height 1s;
}
.item img {
width: 100px;
height: 100px;
}
/*3. 轮播图*/
.slide {
position: relative;
width: 800px;
}
.slide-image {
display: none;
cursor: pointer;
}
/*slide-image*/
.active {
display: inline-block;
}
.slide-button {
width: 24px;
height: 30px;
color: #fff;
background: #000;
opacity: 0.3;
border: 0;
outline: 0;
cursor: pointer;
}
.slide-left {
left: 0;
border-top-right-radius: 20px;
border-bottom-right-radius: 20px;
}
.slide-right {
right: 0;
border-top-left-radius: 20px;
border-bottom-left-radius: 20px;
}
.vertical-center {
position: absolute;
top: 50%;
transform: translateY(-50%);
font-size: 15px;
}
.slide-indicators {
position: absolute;
bottom: 10px;
width: 100%;
text-align: center;
}
.slide-indi {
display: inline-block;
width: 10px;
height: 10px;
border-radius: 50%;
border: 1px solid rgba(0,0,0,.05);
background: rgba(255,255,255,.4);
}
.white {
background: white;
}