From 7c89ab8d0cc2ada98ec7b26e1381fbf650e493b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E4=BA=91=E6=B5=B7=20mayunhai=20=28=29?= Date: Fri, 21 Jun 2019 17:21:48 +0800 Subject: [PATCH] =?UTF-8?q?will-change=20=E4=BC=98=E5=8C=96=20=E5=86=85?= =?UTF-8?q?=E7=BD=AE=E7=BB=84=E4=BB=B6=20transition=20=E5=8A=A8=E7=94=BB?= =?UTF-8?q?=E6=80=A7=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/styles/transition.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/styles/transition.scss b/src/styles/transition.scss index 4cb27cc8..36ca5d14 100644 --- a/src/styles/transition.scss +++ b/src/styles/transition.scss @@ -3,6 +3,7 @@ /* fade */ .fade-enter-active, .fade-leave-active { + will-change: opacity; transition: opacity 0.28s; } @@ -14,6 +15,7 @@ /* fade-transform */ .fade-transform-leave-active, .fade-transform-enter-active { + will-change: opacity, transform; transition: all .5s; } @@ -30,6 +32,7 @@ /* breadcrumb transition */ .breadcrumb-enter-active, .breadcrumb-leave-active { + will-change: opacity, transform; transition: all .5s; } @@ -40,6 +43,7 @@ } .breadcrumb-move { + will-change: opacity, transform; transition: all .5s; }