모션 (Motion)

부드러운 애니메이션은 UI에 대한 느낌을 좋게 만듭니다. Vue의 트랜지션 (transition; 장면전환) 시스템과 재사용가능한 펑셔널(functional) 컴포넌트를 사용하면 쉽게 어플리케이션의 모션을 조절할 수 있습니다. 대부분의 컴포넌트는 transition prop 을 이용하여 트랜지션을 조절할 수 있습니다.

API

사용자 트랜지션 만들기

You can use Vuetify's transition helper function to easily create your own custom transitions. This function will return an object that you can import into Vue. Using Vue's functional component option will make sure your transition is as efficient as possible. Simply import the function:

import { createSimpleTransition } from 'vuetify/es5/util/helpers'
 
const myTransition = createSimpleTransition('my-transition')
 
Vue.component('my-transition', myTransition)

The createSimpleTransition function accepts 1 argument, name. This will be the name that you can hook into with your style. This is an example of what v-fade-transition looks like:

.fade-transition
  &-leave-active
    position: absolute
 
  &-enter-active, &-leave, &-leave-to
    transition: $primary-transition
 
  &-enter, &-leave-to
    opacity: 0