0.0.1 • Published 5 years ago

vue-lerp-element v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

vue-lerp-element

A VueJs component that makes the default slot follow the mouse from its default position

Installation

NPM

 npm i --save vue-lerp-element

Example

This is the most basic usage of the component :

<template>
    <vue-lerp-element>
        <div class="circle"></div>
    </vue-lerp-element>
</template>

<script>
    import VueLerpElement from "vue-lerp-element";

    export default {
        components: {
            VueLerpElement,
        },
    };
</script>   

Props

nametypedescriptionrequireddefault value
transitionDurationNumberThe duration of the transition in secondsfalse0.3
easingStringThe easing of the transition (any css easing is valid)falseease-out
followOffsetNumberThe offset of the element from the mouse position (in percentage between 0 and 1)false1

Contributing

Contributions are welcome ! Follow the instructions in the contributing file

License

MIT