优化样式
parent
9109ca7680
commit
128df30a62
|
@ -125,10 +125,9 @@ class Swipe extends Component {
|
||||||
border-color: #fff;
|
border-color: #fff;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
--size: 12px;
|
--size: 12px;
|
||||||
transition: opacity linear 0.2s;
|
transition: opacity ease-in-out 0.2s;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
opacity: 0.8 !important;
|
opacity: 1 !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.left,
|
.left,
|
||||||
|
@ -308,7 +307,7 @@ class Swipe extends Component {
|
||||||
}
|
}
|
||||||
render() {
|
render() {
|
||||||
let styles = styleMap({
|
let styles = styleMap({
|
||||||
opacity: this.showArrowBtn ? 0.5 : 0
|
opacity: this.showArrowBtn ? 0.6 : 0
|
||||||
})
|
})
|
||||||
let toggleBtns =
|
let toggleBtns =
|
||||||
this.direction === 'horizontal'
|
this.direction === 'horizontal'
|
||||||
|
|
Loading…
Reference in New Issue