From 128df30a6289759fcaace2c992537c91ccbd9c64 Mon Sep 17 00:00:00 2001 From: chenjiajian <770230504@qq.com> Date: Wed, 12 Apr 2023 18:27:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/swipe/index.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/swipe/index.js b/src/swipe/index.js index caa5354..5edb03c 100644 --- a/src/swipe/index.js +++ b/src/swipe/index.js @@ -125,10 +125,9 @@ class Swipe extends Component { border-color: #fff; border-radius: 50%; --size: 12px; - transition: opacity linear 0.2s; - + transition: opacity ease-in-out 0.2s; &:hover { - opacity: 0.8 !important; + opacity: 1 !important; } } .left, @@ -308,7 +307,7 @@ class Swipe extends Component { } render() { let styles = styleMap({ - opacity: this.showArrowBtn ? 0.5 : 0 + opacity: this.showArrowBtn ? 0.6 : 0 }) let toggleBtns = this.direction === 'horizontal'