Vue Proximity Feedback
Installation
npm install vue-proximity-feedback --save
Usage
-
register the component.
windowVue = -
create a css animation
@} -
usage
<proximity-feedbackref="pfb"tag="div"animation-class="pulse":distance="{min: 10, max: 400}":divide-by="125"@click.native="doSomthing()"><i class="fa-search"></i></proximity-feedback>- you can conditionaly start / stop the mouse tracking throughthis.$refs.pfb.stop()this.$refs.pfb.start()
prop required type default description tag ❌ string span animationClass ✅ string distance ❌ object {min: 0, max: 100} divideBy ❌ number 100 proximity / divideBy = animation speed - you can conditionaly start / stop the mouse tracking through
TODO
- fix frame stutter when animation speed change.