![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | dist/ | 2 years ago | - | |
![]() | lib/ | 2 years ago | - | |
![]() | LICENSE | 2 years ago | 1.0K | 0fb859dc fixed mobile overflwo options [كارل مبارك] |
![]() | README.md | 2 years ago | 689 | 0fb859dc fixed mobile overflwo options [كارل مبارك] |
![]() | package.json | 2 years ago | 3.0K | 0fb859dc fixed mobile overflwo options [كارل مبارك] |
A plugin of Vue that adds a directive for parallax effect by Rellax.js.
npm i vue-rellax -S
or
yarn add vue-rellax
import Vue from 'vue'
import VueRellax from 'vue-rellax'
Vue.use(VueRellax)
const vm = new Vue({
el: '#app',
template: `
<div v-rellax="{
// Rellax Options
// See: https://github.com/dixonandmoe/rellax#features
speed: -2,
}">
I’m slow and smooth
</div>
`
})
In your nuxt.config.js
{
plugins: [
{ src: 'node_modules/vue-rellax/lib/nuxt-plugin', ssr: false }
]
}