VUE添加过渡动画的四个方法总结

1、使用默认类名来指定过渡动画

VUE添加过渡动画的四个方法总结_第1张图片

2、自定义类名前缀来指定过渡动画(需要在transition中指定name)
<div id="example-1">
  <button @click="show = !show">
    Toggle render
  button>
  <transition name="slide-fade">
    <p v-if="show">hellop>
  transition>

你可能感兴趣的:(vue,css)