Giter Club home page Giter Club logo

vue-wow's Introduction

vue-wow

vue-wow NPM downloads NPM downloads JS gzip size

浏览器可视窗口加载 DEMO地址

Use Setup for Webpack

install vue-wow

npm install vue-wow --save

Vue mount

// import
import Vue from 'vue'
import VueWow from 'vue-wow'

// mount with global
Vue.use(VueWow)

// mount with component
import {UAnimateContainer, UAnimate} from 'vue-wow'

export default {
  components: {
    UAnimateContainer,
    UAnimate
  }
}

Use in SPA

<template>
  <u-animate-container>
    <u-animate
      name="fadeIn"
      delay="0s"
      duration="1s"
      :iteration="1"
      :offset="0"
      animateClass="animated"
      :begin="false" 
    >
      测试
    </u-animate>
  </u-animate-container>
</template>
<script>
  export default {
    data () {
      return {
        
      }
    } 
  }
</script>

Api

UAnimate

Properties
Name Type Default Description
name String '' 组件动画的名称class(推荐填写animate.css,如fadeIn)
el String 'div' 组件渲染标签
duration String 1s 动画持续时间
delay String 0s 动画延迟时间
iteration Number 1 动画运行次数
offset Number 0 距离可视区域多少开始执行动画(begin参数必须为false时有效)
animateClass String 'animated' animation.css 动画的 class
begin Boolean false 是否立即执行 忽略屏幕位置计算

Events

Name Parameters Description
start this 动画开始
end this 动画结束

vue-wow's People

Contributors

estelle00 avatar dependabot[bot] avatar chris-visser avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.