From 4569f7b1f2cd74a6743b0ff162d68f11640d7d74 Mon Sep 17 00:00:00 2001 From: Ryan2128 <33176053+Ryan2128@users.noreply.github.com> Date: Fri, 20 Nov 2020 21:23:42 +0800 Subject: [PATCH] fix(notification): fix animation error (#640) --- packages/theme-chalk/src/notification.scss | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/theme-chalk/src/notification.scss b/packages/theme-chalk/src/notification.scss index 40eddc12e2..b81f8ba65d 100644 --- a/packages/theme-chalk/src/notification.scss +++ b/packages/theme-chalk/src/notification.scss @@ -82,7 +82,7 @@ } } -.el-notification-fade-enter { +.el-notification-fade-enter-from{ &.right { right: 0; transform: translateX(100%); @@ -93,7 +93,6 @@ transform: translateX(-100%); } } - -.el-notification-fade-leave-active { +.el-notification-fade-leave-to { opacity: 0; }