0.0.1 • Published 7 years ago

react-parade v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

react-parade

npm npm Travis Codecov cdn

Installation

yarn add react-parade

Usage

import React from 'react'
import Parade from 'react-parade'

const d = 'c 50,0 50,100 100,100 50,0 50,-100 100,-100'

export default () =>
  <svg viewBox='0 0 600 600' >
    <Parade {...{ d }}>
      <g fill='#483746'>
        <circle r='5' />
        <circle r='10' />
        <circle r='15' />
      </g>
    </Parade>
  </svg>

Props

d: string

required as The path information for line animation.

pace: number = 1

animation's pace.

pause: boolean

To stop animation.

Supported Node

They will be extracted as raw-dom from props.children.

  • circle
  • ellipse
  • rect
  • image

License

MIT (http://opensource.org/licenses/MIT)