From 50c88f7205790e36df58e94ea1f64cc9f4650561 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Thu, 23 Sep 2021 21:40:31 +0800 Subject: [PATCH] Prevent the back-to-top button from flickering when switching the theme mode --- _sass/addon/commons.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_sass/addon/commons.scss b/_sass/addon/commons.scss index bbe0193..ee125b6 100644 --- a/_sass/addon/commons.scss +++ b/_sass/addon/commons.scss @@ -1099,8 +1099,8 @@ $sidebar-display: "sidebar-display"; height: $size; border-radius: 50%; border: 1px solid var(--btn-backtotop-border-color); - transition: 0.2s ease-out; - -webkit-transition: 0.2s ease-out; + transition: transform 0.2s ease-out; + -webkit-transition: transform 0.2s ease-out; i { line-height: $size;