Skip to content

dilpreetsio/react-simple-rotating-text

Repository files navigation

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

propery description required default allowed values
texts An array of strings true
color Hex value of color false black hex code of color
duratrion duration of the animation false 2.5s number
direction direction of animation false vertical horzontal or vertical
className Custom classes for styling false

License

MIT © dilpreetsio

About

A simple rotating animation text component

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published