vc-popup-effect-tile-press

vc-popup-effect-tile-press

Usage no npm install needed!

<script type="module">
  import vcPopupEffectTilePress from 'https://cdn.skypack.dev/vc-popup-effect-tile-press';
</script>

README

vc-popup-effect-fold


wp的磁贴按压效果

添加依赖

> yarn add vc-popup-effect-fold || npm i vc-popup-effect-fold || cnpm i vc-popup-effect-fold --by=yarn

引入

import Vue from 'vue'
import tilePress from 'vc-popup-effect-fold'
// 这里名字可以随意

Vue.use(tilePress)

在具体页面中使用

this.centerMenu = new this.$popup.CenterMenu({
  animation: {
    in: { effect: 'tilePress' },
    out: { effect: 'tilePress' }
  }
})

效果预览

License

MIT 一起来扣细节~