Vue Nativescript does not support the v-on hook, even though I found a solution for VueJS.
Check out the solution here
Currently, I am applying a class to trigger an animation:
Template
<Image
ref="Image"
:class="{scaleOut: scaleOutIsActive}"
v-on:animationend="animend" //this does not work
v-on:transitionend="animend" //this does not work
src="https://upload.wikimedia.org/wikipedia/commons/thumb/0/05/Red_circle.svg/1200px-Red_circle.svg.png"
stretch="none"
/>
CSS
.scaleOut {
animation-name: kfOut;
animation-duration: 1;
animation-fill-mode: forwards;
}
@keyframes kfOut {
from { transform: scale(1, 1); }
to { transform: scale(1.1,1.1);}
}
This is supposed to trigger a function:
animend() {
//do something
}