1.0.3 • Published 5 years ago

rc-animation v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

rc-animation

react package animations

NPM JavaScript Style Guide

Install

npm install --save rc-animation

Example

PlayGround

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>
    )
  }
}

License

Mit