1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-04 17:58:47 +09:00

Update sequential-entrance.vue

This commit is contained in:
syuilo 2020-02-06 14:55:27 +09:00
parent e92e83746d
commit 0a3a0f3beb

View File

@ -65,11 +65,9 @@ export default Vue.extend({
this.index++;
},
leave(el, done) {
setTimeout(() => {
el.style.opacity = 0;
el.style.transform = this.direction === 'down' ? 'translateY(64px)' : 'translateY(-64px)';
setTimeout(done, 700);
}, this.delay * el.dataset.index)
el.style.opacity = 0;
el.style.transform = this.direction === 'down' ? 'translateY(64px)' : 'translateY(-64px)';
setTimeout(done, 700);
},
focus() {
this.$slots.default[0].elm.focus();