Skip to content

AndrewGardhouse/vue-woah

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-woah

A Vue transition library based on woah.css

Install

npm install --save vue-woah

Component List

  • ComeInStyleTransition
  • FadeInTransition
  • FlyInTransition
  • LeaveInTransition
  • RotateComplexTransition
  • SimpleEntranceTransition
  • Spin3DTransition
  • StarWarsTransition
  • WowzorsTransition

Usage

You can add transitions globally:

import { WowzorsTransition } from 'vue-woah'
Vue.component('WowzorsTransition', WowzorsTransition)

Or within individual components:

import { WowzorsTransition } from 'vue-woah'

export default {
  components: {
    WowzorsTransition
  }
}

Notes:

  • Make sure to add the woah class to elements within the transitions.

Props

Prop Description Type Default Value
duration Length of transition Number 5000
group Is the component a <transition-group> Boolean false
moveClass The class which is added when items are changing positions in <transition-group> (learn more) String smooth-move
tag What the transition tag is, if group is true String div
wrapperClass The class the transition tag has String woah-transition-group

Special Thanks

Creating Reusable Transitions in Vue by Cristi Jora

Woah.css

About

A reusable transition library based on Woah.css

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published