diff --git a/common/css/animation.css b/common/css/animation.css index 8b12ee32..6d43ceb8 100644 --- a/common/css/animation.css +++ b/common/css/animation.css @@ -707,4 +707,26 @@ transform: scale3d(1, 1, 1); } } - \ No newline at end of file + + +/* 页面淡入渐变动画 */ +.page-fade-in { + -webkit-animation: pageFadeIn 0.25s ease-out forwards; + animation: pageFadeIn 0.25s ease-out forwards; +} +@keyframes pageFadeIn { + from { + opacity: 0; + } + to { + opacity: 1; + } +} +@-webkit-keyframes pageFadeIn { + from { + opacity: 0; + } + to { + opacity: 1; + } +} diff --git a/pages/cart/cart.vue b/pages/cart/cart.vue index e28db366..08a99fde 100644 --- a/pages/cart/cart.vue +++ b/pages/cart/cart.vue @@ -1,5 +1,5 @@