From 53771d4c5e1109b295519f4ecf7ee29e6295ba09 Mon Sep 17 00:00:00 2001 From: Catouse Date: Wed, 5 Feb 2020 16:59:10 +0800 Subject: [PATCH] * add helper class .no-animation. --- src/less/modules/animations.less | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/less/modules/animations.less b/src/less/modules/animations.less index b24c6c901..8c128ecf7 100644 --- a/src/less/modules/animations.less +++ b/src/less/modules/animations.less @@ -1,7 +1,7 @@ /// ======================================================================== /// Bootstrap: animations.less /// https://github.com/twbs/bootstrap/blob/master/less/component-animations.less -/// +/// /// ZUI: The file has been changed in ZUI. It will not keep update with the /// Bootsrap version in the future. /// http://zui.sexy @@ -17,6 +17,15 @@ // We don't use the `.opacity()` mixin here since it causes a bug with text // fields in IE7-8. Source: https://github.com/twitter/bootstrap/pull/3552. +.no-animation, +.no-animation:before, +.no-animation:after, +.no-animation *, +.no-animation *:before, +.no-animation *:after { + transition: none!important; +} + .fade { opacity: 0; .transition(opacity .15s linear); -- GitLab