From e4472dbaeee80483f8564f547f039b6b35cd9a9c Mon Sep 17 00:00:00 2001 From: huangchen1031 Date: Wed, 15 Jan 2025 16:28:57 +0800 Subject: [PATCH] style(image-viewer): keep animation staying end --- style/web/components/image-viewer/_index.less | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/style/web/components/image-viewer/_index.less b/style/web/components/image-viewer/_index.less index c825e63554..c07c202b92 100644 --- a/style/web/components/image-viewer/_index.less +++ b/style/web/components/image-viewer/_index.less @@ -84,10 +84,10 @@ animation: @anim-duration-base @anim-time-fn-ease-in modal-mask-show; &.@{prefix}-is-hide { - animation: @anim-duration-base @anim-time-fn-ease-out modal-mask-hide; + animation: @anim-duration-base @anim-time-fn-ease-out modal-mask-hide forwards; .@{prefix}-image-viewer__modal-pic .@{prefix}-image-viewer__modal-box { - animation: @anim-duration-base @anim-time-fn-ease-out modal-image-hide; + animation: @anim-duration-base @anim-time-fn-ease-out modal-image-hide forwards; } }