Vue MouseFollower
Vue plugin for moving background on mouse move Inspired by https://codepen.io/vajkri/pen/grgQmb
Instalation
Get from npm: npm install vue-mousefollower
,
from yarn yarn add vue-mousefollower
or from bower bower install vue-mousefollower
Usage
// main.js Vue
<!-- <template> in component.vue -->
/* <style> in component.vue */
Customizing
-
Set custom friction with
v-mousefollower:[custom number]
(ex.v-mousefollower:60
, default is 30) -
You can use
v-mf
instead ofv-mousefollower