how to make 3dtransition into same place vue js code example
Example: how to make 3dtransition into same place vue js
new Vue({
el: '#animated-number-demo',
data: {
number: 0,
tweenedNumber: 0
},
computed: {
animatedNumber: function() {
return this.tweenedNumber.toFixed(0);
}
},
watch: {
number: function(newValue) {
gsap.to(this.$data, { duration: 0.1, tweenedNumber: newValue });
}
}
})