2.0.0 • Published 7 years ago

anibyvue v2.0.0

Weekly downloads
9
License
-
Repository
-
Last release
7 years ago

Anibyvue

基于Vue2的轻量级动画组件

Gif演示

AnibyVue

安装方式

npm i Anibyvue

简要说明

  • 每个动画模块的实现依托Vue过渡效果中不同的类名切换
  • 对外提供良好的接口,可以利用Animate.css提供的动画样式进行内容扩展
  • 通过webpack进行构建
  • 简单的对移动端做出了适配

使用方法

1.引入css

// include animation styles
@import "./style/common.css";
@import "./style/door.css"; 

2.注册组件

import anibyVue from './components/AnibyVue.vue'

export default {
  name: 'App',
  components: {anibyVue},
  data: {
    return {
       show: false
    }
  }
}

3.组件使用

<anibyVue :show="show" animation="rotate" @hide="show = false">
    <div>A vue modal with animations.</div>
</anibyVue>

参数信息

属性/方法类型默认值属性信息
widthnumber400弹出框宽度
heightnumber240弹出框高度
measurestringpx宽高单位
showboolfalse是否显示弹出框
maskbooltrue是否显示蒙层
animationstringzoom动画的类型
durationnumber300动画执行时间
customStylesfunction用户自定义子组件样式
customMaskStylesfunction用户自定义蒙层样式

Animation Types

  • zoom
  • fade
  • flip
  • door
  • rotate
  • slideUp
  • slideDown
  • slideLeft
  • slideRight
2.0.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago