rc-animation
v1.0.3
Published
react package animations
Downloads
3
Readme
rc-animation
react package animations
Install
npm install --save rc-animation
Example
Usage
import React, { Component } from 'react'
import {
BarLoading, CircleBallLoading, DefaultLoading, HorizontalLoading,
DepthText, GhostText, ShinyText, JumpText, LoadingText, NeonText, PerspectiveText, TranslateUpText
} from 'rc-animation'
import './index.css'
export default class App extends Component {
render() {
return (
<div>
{/* LOADINGS */}
<BarLoading backgroundColor='red' height={20} />
<BarLoading animated reverse slower />
<CircleBallLoading />
<CircleBallLoading delay />
<DefaultLoading />
<HorizontalLoading />
{/* TEXT */}
<DepthText text='Teste' />
<GhostText transitionTime={1}>
<GhostText.Text text='C' />
<GhostText.Text text='L' />
<GhostText.Text text='I' />
<GhostText.Ghost text='I' />
<GhostText.Ghost text='I' />
<GhostText.Text text='C' />
<GhostText.Text text='K' />
<GhostText.Ghost text='H' />
<GhostText.Ghost text='i' />
</GhostText>
<ShinyText text='Teste' transitionTime={4} />
<JumpText text='Teste' transitionTime={0.1} />
<JumpText text='Teste' transitionTime={0.3} delay />
<LoadingText text='Teste' transitionTime={1} />
<NeonText backgroundColor='#cfa518' text='Teste' transitionTime={1} />
<PerspectiveText>
<p>Teste</p>
<p>Teste</p>
<p>Teste</p>
<p>Teste</p>
<p>Teste</p>
<p>Teste</p>
</PerspectiveText>
<TranslateUpText height={40} transitionTime={10}>
<span>1</span>
<span>2</span>
<span>3</span>
<span>4</span>
</TranslateUpText>
</div>
)
}
}