Skip to content

Commit dc0c37b

Browse files
committed
Fixed css bug in the slider demo
1 parent 7df9d43 commit dc0c37b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

demos/slider/Slider.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<script src="../../src/utils/Utils.js"></script>
2121

2222
<style>
23-
23+
2424
.pink-slider {
2525
position: relative;
2626
display: inline-block;
@@ -34,7 +34,7 @@
3434
transition: height 200ms cubic-bezier(0.52, 0.075, 0.47, 0.895);
3535
}
3636

37-
.pink-slider:hover {
37+
.pink-slider:hover, .pink-slider:active {
3838
height: 8px;
3939
}
4040

@@ -50,7 +50,8 @@
5050
transition-property: width, height, margin;
5151
}
5252

53-
.white-dot:hover {
53+
.pink-slider:hover .white-dot,
54+
.white-dot:hover, .white-dot:active {
5455
width: 20px;
5556
height: 20px;
5657
margin-top: -4px;

0 commit comments

Comments
 (0)