0👍
Why not bind classes to a specific condition (see Vue documentation https://v2.vuejs.org/v2/guide/class-and-style.html) and then use the transition
-property in CSS (https://www.w3schools.com/css/css3_transitions.asp)?
👤Bene
- [Vuejs]-How to include vue-component from public folder (Laravel 5.5)
- [Vuejs]-Vuex : compose a state item from several pieces of state
0👍
Solved it by adding transition: background-image 2s;
at the top of every css class before the background-image.
👤xvy.
0👍
when you change class in your dom and need transition , must do like this
<div :class="{active: true}" ></div>
div {
background-color:red;
transition:all 2s ease;
}
.active {
background-color: red;
}
- [Vuejs]-How to get data from axios reponse outside the call function
- [Vuejs]-How to make declaration files for an unofficial vue module, or any packages for that matter?
Source:stackexchange.com