react-backgroud-fading
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

/react-backgroud-fading/

    Package Sidebar

    Install

    npm i react-backgroud-fading

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    13.8 kB

    Total Files

    11

    Last publish

    Collaborators

    • lyhourchhen