From 3d602562ad7dcb55fe986aa347db5370ec148343 Mon Sep 17 00:00:00 2001 From: Lex Lim Date: Sun, 10 Jul 2022 23:15:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8A=A8=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/ext.isekai.offcanvas-toc.less | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/ext.isekai.offcanvas-toc.less b/modules/ext.isekai.offcanvas-toc.less index 9f12cdd..182a027 100644 --- a/modules/ext.isekai.offcanvas-toc.less +++ b/modules/ext.isekai.offcanvas-toc.less @@ -1,6 +1,7 @@ .toc-offcanvas { position: fixed; visibility: hidden; + opacity: 0; top: 0; right: 0; z-index: 102; @@ -10,7 +11,7 @@ max-width: 80%; box-shadow: 1px 0 8px 0 rgba(0, 0, 0, 0.35); transform: translate3d(100%, 0, 0); - transition: transform 250ms linear; + transition: opacity 250ms ease-in-out, transform 250ms ease-in-out; will-change: transform; overflow-y: auto; background-color: #eaecf0; @@ -137,5 +138,6 @@ body.toc-offcanvas-open { .toc-offcanvas { transform: translate3d(0, 0, 0); + opacity: 1; } }