From 2a7d4ee866bc262b8bf305afee1ed6f00ac8fadf Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 12 Feb 2020 03:31:46 +0900 Subject: [PATCH] Update sequential-entrance.vue --- src/client/components/sequential-entrance.vue | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/client/components/sequential-entrance.vue b/src/client/components/sequential-entrance.vue index 3c4b42bfc9..67745a2893 100644 --- a/src/client/components/sequential-entrance.vue +++ b/src/client/components/sequential-entrance.vue @@ -59,13 +59,12 @@ export default Vue.extend({ if (document.hidden) { el.style.opacity = 1; el.style.transform = 'translateY(0px)'; - return; - }; - - setTimeout(() => { // 必要 - el.style.opacity = 1; - el.style.transform = 'translateY(0px)'; - }); + } else { + setTimeout(() => { // 必要 + el.style.opacity = 1; + el.style.transform = 'translateY(0px)'; + }); + } }, leave(el) { el.style.opacity = 0;