Your IP : 216.73.216.79


Current Path : /var/www/html/jpp/node_modules/vue2-transitions/src/Fade/
Upload File :
Current File : /var/www/html/jpp/node_modules/vue2-transitions/src/Fade/FadeTransition.vue

<template>
  <component :is="componentType"
             :tag="tag"
             v-bind="$attrs"
             v-on="hooks"
             enter-active-class="fadeIn"
             move-class="fade-move"
             leave-active-class="fadeOut">
    <slot></slot>
  </component>
</template>
<script>
  import {baseTransition} from '../mixins/index.js'

  export default {
    name: 'fade-transition',
    mixins: [baseTransition]
  }
</script>
<style>
  @keyframes fadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  .fadeIn {
    animation-name: fadeIn;
  }

  @keyframes fadeOut {
    from {
      opacity: 1;
    }

    to {
      opacity: 0;
    }
  }

  .fadeOut {
    animation-name: fadeOut;
  }

  .fade-move {
    transition: transform .3s ease-out;
  }
</style>