1.2.1 • Published 3 years ago

@dziardziel/v-wow v1.2.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

vue-wow

Features

  • Ispire by wow.js Reveal CSS animation as you scroll down a page
  • Easy to migrate from wow.js to vue-wow.
  • Fast execution and lightweight code
  • Works with Animate.css

Install

NPM

$ npm install git+https://github.com/guisoares2011/vue-wow

Yarn

$ yarn add https://github.com/guisoares2011/vue-wow

Integrate with Vue

import vWow from 'v-wow'
Vue.use(vWow);

Directive with parameters

<div class="holder" v-wow="{ 'animation-name': 'fadeInUp','animation-duration': '1s'}"></div>
ParametersDescriptionDefault value
animation-nameName of css animation-
animation-durationDuration of this animation-
animation-delayAnimation Delay-

Directive + Data Attributes

<div class="fadeInUp" v-wow data-wow-delay="0.2s" data-wow-duration="2s"></div>
AttributeDescriptionDefault value
data-wow-durationDuration of this animation-
data-wow-delayAnimation Delay-

Example of Animation

@keyframes fadeInUp {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, 30%, 0);
    -ms-transform: translate3d(0, 30%, 0);
    transform: translate3d(0, 30%, 0);
  }
  100% {
    opacity: 1;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
  }
}

.fadeInUp {
  animation-name: fadeInUp;
  animation-timing-function: ease-out;
}