Update sequential-entrance.vue
This commit is contained in:
parent
083095ded6
commit
2a7d4ee866
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user