Security News
OpenJS: “XZ Utils Cyberattack Likely Not an Isolated Incident”
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.
vue-rellax
Advanced tools
Weekly downloads
Readme
A plugin of Vue that adds a directive for parallax effect by Rellax.js.
npm i vue-rellax -S
or
yarn add vue-rellax
Since this plugin uses WeakMap, old browsers need to load pollyfill.
<script crossorigin="anonymous" src="https://polyfill.io/v3/polyfill.min.js?features=WeakMap"></script>
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>
`
})
To destroy
, assign false
to v-relax
.
const vm = new Vue({
el: '#app',
template: `
<div>
<p v-rellax="rellax">
I’m slow and smooth
</p>
<button type="button" @click="destroyRellax">Destroy Rellax</button>
</div>
`,
data() {
return {
rellax: {
speed: -2
}
}
},
methods: {
destroyRellax() {
this.rellax = false
}
}
})
In your nuxt.config.js
{
plugins: [
{ src: '~~/node_modules/vue-rellax/lib/nuxt-plugin', ssr: false }
]
}
FAQs
A plugin of Vue that adds a directive for parallax effect by rellax.js.
The npm package vue-rellax receives a total of 245 weekly downloads. As such, vue-rellax popularity was classified as not popular.
We found that vue-rellax demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.
Company News
Come meet the Socket team at BSidesSF and RSA! We're sponsoring several fun networking events and we would love to see you there.
Security News
OSI is starting a conversation aimed at removing the excuse of the SaaS loophole for companies navigating licensing and the complexities of doing business with open source.