1.0.0 • Published 4 years ago

react-backgroud-fading v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

react-backgroud-fading

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save react-backgroud-fading

Usage

import ReactBackgroundFading  from 'react'

import ReactBackgroundFading from 'react-backgroud-fading'
import 'react-backgroud-fading/dist/index.css'

const Example = () => {
  const myCustomecolors:<string> = ['orange', 'gray', 'yellow', 'green', 'red']
  return(
    <ReactBackgroundFading height={500} width={1000} transitionTiming={5} fullAsScreen={true} colors={myCustomecolors} children={
                <div style={{ margin: 0, padding: 0, display: 'flex' }}>
                  <h1>Hello World</h1>
                </div>
        }/>
  );
};

License

MIT © LyhourChhen