监听动画结束
const myDiv = ref(null);
onMounted(() => {
myDiv.value.addEventListener('animationend', () => {
console.log('动画结束');
});
});
const myDiv = ref(null);
onMounted(() => {
myDiv.value.addEventListener('animationend', () => {
console.log('动画结束');
});
});