Skip to content

监听动画结束 JavaScript

Published: at 09:06 AMSuggest Changes

监听动画结束

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

Previous Post
CSS 设置背景颜色透明
Next Post
Hammer.js 手势检测库