0.1.2 • Published 7 years ago

@la-haute-societe/lhs-vue-parallax v0.1.2

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

Deprecation warning

This package has been renamed to @lahautesociete/vue-parallax.

LHS Vue Parallax

LHS Vue plugin to use lhs-parallax in Vue with directive.

Installation

npm install @la-haute-societe/lhs-vue-parallax

Usage

main.js
Import Vue and LhsParallax somewhere in your entry file.
Then tell Vue to use LhsParallax plugin.

import Vue from 'vue';
import LhsVueParallax from '@la-haute-societe/lhs-vue-parallax'
Vue.use(LhsVueParallax);

CustomComponent.vue
In your vue template, add a HTML element with the v-parallax directive and specify a parallax level.
You can add an optional modifier (x / y) to specify the parallax direction.

<div v-parallax.x="5"></div>
0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago