Security News
Highlights from the 2024 Rails Community Survey
A record 2,709 developers participated in the 2024 Ruby on Rails Community Survey, revealing key tools, practices, and trends shaping the Rails ecosystem.
vue-mouse-parallax
Advanced tools
An easy to use Mouse Parallax Component - Made with Vue.js
npm install --save vue-mouse-parallax
Install all the components:
import Vue from 'vue'
import VueMouseParallax from 'vue-mouse-parallax'
Vue.use(VueMouseParallax)
Use specific components:
import Vue from 'vue'
import { ParallaxContainer, ParallaxElement } from 'vue-mouse-parallax'
Vue.component('parallax-container', ParallaxContainer)
Vue.component('parallax-element', ParallaxElement)
⚠️ A css file is included when importing the package. You may have to setup your bundler to embed the css in your page.
Install all the components:
import 'vue-mouse-parallax/dist/vue-mouse-parallax.css'
import VueMouseParallax from 'vue-mouse-parallax/dist/vue-mouse-parallax.common'
Vue.use(VueMouseParallax)
Use specific components:
import 'vue-mouse-parallax/dist/vue-mouse-parallax.css'
import { ParallaxContainer, ParallaxElement } from 'vue-mouse-parallax/dist/vue-mouse-parallax.common'
Vue.component('parallax-container', ParallaxContainer)
Vue.component('parallax-element', ParallaxElement)
⚠️ You may have to setup your bundler to embed the css file in your page.
<link rel="stylesheet" href="vue-mouse-parallax/dist/vue-mouse-parallax.css"/>
<script src="vue.js"></script>
<script src="vue-mouse-parallax/dist/vue-mouse-parallax.browser.js"></script>
The plugin should be auto-installed. If not, you can install it manually with the instructions below.
Install all the components:
Vue.use(VueMouseParallax)
Install all the components:
import Vue from 'vue'
import VueMouseParallax from 'vue-mouse-parallax/src'
Vue.use(VueMouseParallax)
Use specific components:
import Vue from 'vue'
import { ParallaxContainer, ParallaxElement } from 'vue-mouse-parallax/src'
Vue.component('parallax-container', ParallaxContainer)
Vue.component('parallax-element', ParallaxElement)
⚠️ You need to configure your bundler to compile .vue
files. More info in the official documentation.
In order for the effect to work, the should be contained within
Options can then be passed to like so :
// App.vue
<parallax-container>
<parallax-element :parallaxStrength="-5" :type="'translation'">
<h2>Put your content here</h2>
</parallax-element>
</parallax-container>
Prop | Type | Default Value | Description |
---|---|---|---|
parallaxStrength | Number | 10 | Strength of the Parallax Effect |
type | String | 'translation' | 'translation' - 'rotation' - 'depth' |
FAQs
[![npm](https://img.shields.io/npm/v/vue-mouse-parallax.svg) ![npm](https://img.shields.io/npm/dm/vue-mouse-parallax.svg)](https://www.npmjs.com/package/vue-mouse-parallax) [![vue2](https://img.shields.io/badge/vue-2.x-brightgreen.svg)](https://vuejs.org/
The npm package vue-mouse-parallax receives a total of 33 weekly downloads. As such, vue-mouse-parallax popularity was classified as not popular.
We found that vue-mouse-parallax demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
A record 2,709 developers participated in the 2024 Ruby on Rails Community Survey, revealing key tools, practices, and trends shaping the Rails ecosystem.
Security News
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.