Skip to content

vueui/transitions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vueui-transitions v0.1.0

Use Semantic-UI transitions as v-transition in Vue.js

Installation

npm install --save vueui-transitions

Usage

var Vue = require('vue');
var transitions = require('vueui-transitions');

Vue.use(transitions, {
    duration: 700 // The duration of each animation, Default is 700ms
})

In your HTML you can use them like:

<div class="page" v-show="isVisible" v-transition="slide-up">
    <h1>Welcome to the home page</h1>
</div>

Animations

This is the full list of all the available in-out animations:

var emphasis = [
    'flash',
    'shake',
    'pulse',
    'tada',
    'bounce'
]

var appearance = [
    'slide-up',
    'slide-down',
    'vertical-flip',
    'horizontal-flip',
    'fade',
    'fade-up',
    'fade-down',
    'scale',
    'drop',
    'browse'
]

See the example for a full example with more animations and Webpack as the build tool.

About

Use Semantic-UI transitions as v-transition in Vue.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published