0.0.3 • Published 8 years ago

rc-icon-anim v0.0.3

Weekly downloads
6
License
-
Repository
github
Last release
8 years ago

rc-icon-anim


React IconAnim Component

NPM version build status Test coverage gemnasium deps node version npm download

Browser Support

IEChromeFirefoxOperaSafari
IE 9+ ✔Chrome 31.0+ ✔Firefox 31.0+ ✔Opera 30.0+ ✔Safari 7.0+ ✔

Development

npm install
npm start

Example

http://localhost:8030/examples/

online example: http://react-component.github.io/icon-anim/

install

rc-icon-anim

Usage

IconFontAnim

import IconAnim from 'rc-icon-anim';
const IconFontAnim = IconAnim.IconFontAnim;
React.render(<IconFontAnim type="left" />, container);

IconSVGAim

import IconAnim from 'rc-icon-anim';
const IconSVGAnim = IconAnim.IconSVGAnim;
React.render(<IconSVGAnim type="left" />, container);

API

IconFontAnim

nametypedefaultdescription
typestringnullantd of icon name
appearbooltrueappear anim
animTypestring / objectleftToRightanimate type, provide : alpha leftToRight rightToLeft scale scaleBack scaleBig rotate rotateX rotateY left3dFlip right3dFlip top3dFlip bottom3dFlip rubberBand; if the is object: { appear, enter, leave }, appear is null, with enter,refer;
componentstring / React.Elementdivcomponent tag

IconSVGAnim

nametypedefaultdescription
typestringnullprovide: svg
childrenReact.Elementnullchildren can not coexist with the type, Normative References svg
appearbooltrueappear anim
animationarraynullanimType default provide: animTypeSVG, is null we will use scale
viewBoxstring'0 0 1024 1024'svg viewBox