0.0.5 • Published 6 months ago

react-simple-rotating-text v0.0.5

Weekly downloads
-
License
-
Repository
-
Last release
6 months ago

react-simple-rotating-text

A simple rotating animation text component

NPM JavaScript Style Guide

Demo gif

Install

npm install --save react-simple-rotating-text

Usage

import React, { Component } from 'react'
import { RotatingText } from 'react-simple-rotating-text'
import 'react-simple-rotating-text/dist/index.css'

class Example extends Component {
  render() {
    return <RotatingText texts={['hello', 'world']} />
  }
}

Properties

properydescriptionrequireddefaultallowed values
textsAn array of stringstrue
colorHex value of colorfalseblackhex code of color
duratrionduration of the animationfalse2.5snumber
directiondirection of animationfalseverticalhorzontal or vertical
classNameCustom classes for stylingfalse

License

MIT © dilpreetsio