Skip to content

YvanY/height-transition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

height-transition

<template>
  <main>
    <button @click="toggle">toggle</button>

    <height-transition>
      <div v-if="show">
        <!-- contents -->
      </div>
    </height-transition>
  </main>
</template>

<script>
import HeightTransition from '@yvany/height-transition'

export default {
  el: '#app',
  components: { HeightTransition },

  data: () => ({
    show: true
  }),

  methods: {
    toggle() {
      this.show = !this.show
    }
  }
}
</script>

<style src="@yvany/height-transition/dist/style.css"></style>

About

vue height transition component

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published