An easy to use Mouse Parallax Component - Made with Vue.js


In order for the effect to work, the should be contained within

Options can then be passed to like so :

// App.vue


    <parallax-element :parallaxStrength="-5" :type="'translation'">
        <h2>Put your content here</h2>



Prop Type Default Value Description
parallaxStrength Number 10 Strength of the Parallax Effect
type String 'translation' 'translation' - 'rotation' - 'depth'

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# run unit tests
npm run unit

# run all tests
npm test