I'm having trouble getting a vue.js (version 1) transition to work. I copied the code from their official website, but it's not running the javascript console.logs!
Vue.transition('fade', {
css: false,
enter: function (el, done) {
console.log('enter');
},
enterCancelled: function (el) {
console.log('enterCancelled');
},
leave: function (el, done) {
console.log('leave');
},
leaveCancelled: function (el) {
console.log('leaveCancelled');
}
});
var Vue = new Vue({
el: '#app',
data: {
}
});
<div id="app">
<p transition="fade">test fade</p>
</div>