Skip to content

Tiny vue component that adds a directive for parallax effect on elements.

jsnanigans/vue-parallax-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-parallax-js

vue component for parallax effect on elements.

  • no dependencies.
  • for Vue.js 2
  • lightweight
  • 1.6 kb minified

Setup

npm install --save vue-parallax-js # or use yarn # yarn add vue-parallax-js

in your main JavaScript file

// import Vue and vue-parallax-js import Vue from 'vue' import VueParallaxJs from 'vue-parallax-js' // add vue-parallax-js to vue Vue.use(VueParallaxJs)

Usage

when everything is setup you can use the directive like this:

<h1 v-parallax="0.2">vue-parallax-js</h1>

Options and Modifiers

see documentation

About

Tiny vue component that adds a directive for parallax effect on elements.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 10