Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 425 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 425 Bytes

vue-class-on-scroll

A directive to add css class to the element for vue.js(2.x).

Install

npm install vue-class-on-scroll --save

Dev

run npm install and npm run dev

Import

import ClassOnScroll from 'vue-class-on-scroll' // Es6 module

Use

directives: {
  'class-on-scroll': ClassOnScroll,
},
<ELEMENT v-class-on-scroll="{ class: 'myClass' }">
 
</ELEMENT>