Skip to content

browniu/rshake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rshake

给页面元素添加晃动效果的组件

NPM JavaScript Style Guide

demo

Install

npm install rshake -S

Usage

import React, { Component } from 'react'

import Rshake from 'rshake'

class Example extends Component {
  render () {
    return (
      <div>
        <Rshake type='little' rate='200' >
            <span>xixi</span>
        </Rshake>
      </div>
    )
  }
}

Props

Prop Detail Default
type 晃动的类型 `slow
rate 晃动的频率 `100
hover 设置为悬浮触发 false

Update

0.1.1 2019.10.21

  • 更新文档
  • 仓库迁移

0.1.1 2019.05.22

  • 初版发布

License

MIT © browniu

About

元素晃动组件

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published