Skip to content

jsnanigans/vue-parallax-js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#BETA

  • values range changed from 0-1 to 0-10
  • you can define "percentage" like this: v-parallax="{speed: 3, percentage: 1}" more more fine control

#vue-parallax-js vue component for parallax effect on elements.

  • no dependencies.
  • lightweight

##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="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