mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 08:03:08 +02:00
Update sequential-entrance.vue
This commit is contained in:
parent
e92e83746d
commit
0a3a0f3beb
1 changed files with 3 additions and 5 deletions
|
@ -65,11 +65,9 @@ export default Vue.extend({
|
||||||
this.index++;
|
this.index++;
|
||||||
},
|
},
|
||||||
leave(el, done) {
|
leave(el, done) {
|
||||||
setTimeout(() => {
|
el.style.opacity = 0;
|
||||||
el.style.opacity = 0;
|
el.style.transform = this.direction === 'down' ? 'translateY(64px)' : 'translateY(-64px)';
|
||||||
el.style.transform = this.direction === 'down' ? 'translateY(64px)' : 'translateY(-64px)';
|
setTimeout(done, 700);
|
||||||
setTimeout(done, 700);
|
|
||||||
}, this.delay * el.dataset.index)
|
|
||||||
},
|
},
|
||||||
focus() {
|
focus() {
|
||||||
this.$slots.default[0].elm.focus();
|
this.$slots.default[0].elm.focus();
|
||||||
|
|
Loading…
Reference in a new issue