react-backgroud-fading
v1.0.0
Published
Made with create-react-library
Downloads
1
Readme
react-backgroud-fading
Made with create-react-library
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