
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
vue-mouse-parallax
Advanced tools
[ ](https://www.npmjs.com/package/vue-mouse-parallax) [](https://vuejs.org/
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)
<script src="vue.js"></script>
<script src="vue-mouse-parallax/dist/vue-mouse-parallax.common.js"></script>
In order for the effect to work, the <parallax-element />
should be contained within <parallax-container />
Options can then be passed to <parallax-element />
like so :
<parallax-container>
<parallax-element :parallaxStrength="10" type="translation" tag="div">
<h2>Put your content here</h2>
</parallax-element>
</parallax-container>
Prop | Type | Default Value | Description |
---|---|---|---|
animationDuration | Number | 1000 | Speed of the parallax animation in ms |
easing | String | cubic-bezier(0.23, 1, 0.32, 1) | Easing of the parallax animation |
tag | String | div | Takes any valid html tag |
perspective | Number | 1000 | Effective for the 'depth' parallax type |
Prop | Type | Default Value | Description |
---|---|---|---|
parallaxStrength | Number | 10 | Strength of the Parallax Effect |
type | String | 'translation' | 'translation' - 'rotation' - 'depth' |
tag | String | div | Takes any valid html tag |
FAQs
[ ](https://www.npmjs.com/package/vue-mouse-parallax) [](https://vuejs.org/
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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.