Skip to content

Commit fc24882

Browse files
committed
feat(swiper): auto hide controls
1 parent b5f4950 commit fc24882

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/swiper/index.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@
105105
opacity: 0.5;
106106
text-decoration: none;
107107
cursor: pointer;
108+
transition: opacity 0.1s;
108109

109110
&:hover {
110111
opacity: 0.8;
@@ -126,4 +127,10 @@
126127
background: linear-gradient(to left, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0.0001) 100%);
127128
}
128129
}
130+
131+
&:not(:hover) {
132+
.sk-swiper-control {
133+
opacity: 0;
134+
}
135+
}
129136
}

0 commit comments

Comments
 (0)