gerasimvol / vue-prlx

๐Ÿ”ฎ Vue.js parallax directive you were looking for (can animate translate & background-position)

Home Page:http://vue-prlx.surge.sh/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vue-prlx

npm npm

๐Ÿ›  Install

npm i vue-prlx
yarn add vue-prlx

๐Ÿ”Œ Initialization

ES2015 (Webpack/Rollup/Browserify/etc)

import Vue from 'vue'

// As a plugin
import VuePrlx from 'vue-prlx'
Vue.use(VuePrlx);

// Or as a directive
import { VuePrlxDirective } from 'vue-prlx'
Vue.directive('prlx', VuePrlxDirective);

UMD (Browser)

<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-prlx/dist/v-prlx.min.js"></script>
<script>
// As a plugin
Vue.use(VuePrlx.VuePrlxPlugin);

// Or as a directive
Vue.directive('prlx', VuePrlx.VuePrlxDirective);
</script>

โš™๏ธ Demo and settings

About

๐Ÿ”ฎ Vue.js parallax directive you were looking for (can animate translate & background-position)

http://vue-prlx.surge.sh/

License:MIT License


Languages

Language:JavaScript 80.7%Language:Vue 9.8%Language:HTML 9.5%