.messages_list {
display: flex;
flex-direction: column-reverse;
position: fixed;
top: 80px;
right: 16px;
}
<button v-on:click="change" @click="show = !show" v-if="animation">Change</button>
<section class="first-item" v-show = "show" v-bind:style="{ animation: fadeOut }">
или как ? <div class="first-item__progress" v-bind:style="{ animation: runProgress }"></div>
html
<button v-on:click="change">Change</button>
<section class="first-item" v-bind:style="{ animation: fadeOut, runProgress }">
vue
var app = new Vue({
el: '#app',
data: {
value: null,
fadeOut: null,
runProgress: null
},
methods: {
change: function () {
this.fadeOut = `fadeOut ${this.value}s linear forwards`,
this.runProgress = `runProgress ${this.value}s linear forwards`
}
}
});