A small wrapper for integrating popmotion to Vuejs
npm install --save popmotion vue-popmotion
#or
yarn add vue-popmotion And in your entry file:
import Vue from 'vue'
import popmotion from 'popmotion'
import VuePopmotion from 'vue-popmotion'
Vue.use(VuePomotion, popmotion)Just add 3 scripts in order: vue, popmotion and vue-popmotion to your document.
<script src="https://unpkg.com/vue-popmotion"></script>This wrapper bind popmotion to Vue or this if you're using single file component.
You can popmotion like this:
// the following are available:
Vue.popmotion
Vue.pm
this.popmotion
this.pmCopyright Daksh Miglani, Licensed Under MIT 2017.