Vue.js 페이드인 페이드아웃

1 개요[ | ]

Vue.js 페이드인 페이드아웃
Vue.js transition
<style>
.fade-enter-active, .fade-leave-active { transition: opacity .5s }
.fade-enter, .fade-leave-to { opacity: 0 }
</style>

<div id="demo">
  <button v-on:click="show = !show">Toggle</button>
  <transition name="fade">
    <p v-if="show">hello</p>
  </transition>
</div>

<script src="//unpkg.com/vue"></script>
<script>
new Vue({
  el: '#demo',
  data: {
    show: true
  }
})
</script>

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}