npm.io
0.1.0 • Published 7 years ago

vue-woah

Licence
MIT
Version
0.1.0
Deps
1
Size
925 kB
Vulns
1
Weekly
0

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

Keywords