npm

@fnndk/parallax-vue

1.0.0 • Public • Published

parallax-vue

A Vue.js wrapper for Parallax.js

Install

# install package
npm install https://github.com/FnnDK/parallax-vue --save

# Register the component

import Vue from 'vue'
import Parallax from 'parallax-vue'
Vue.component('parallax', Parallax)

# In HTML
<parallax>
	<img data-depth="0.4" src="bg.png"/>
	<img data-depth="0.2" src="secondElement.png"/>
	<img data-depth="0.1" src="firstElement.png"/>
</parallax>

Readme

Keywords

none

Package Sidebar

Install

npm i @fnndk/parallax-vue

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

37.9 kB

Total Files

28

Last publish

Collaborators

  • fnndk