Update sequential-entrance.vue

This commit is contained in:
syuilo 2020-02-12 03:31:46 +09:00
parent e4ba1d870c
commit c020a4a529

View file

@ -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;