React-Basic-Scroll
A ReactJS components for basicScroll
Installation
yarn add react-basic-scroll
npm i react-basic-scroll
Basic Usage
;;const App extends React.Component render const config = from: 'top-top' to: 'bottom-bottom' props: '--opacity': from: 01 to: 099 ; return <ReactBasicScroll config=config> <h1 style="{{opacity: 'var(--opacity)'}}">Hello world!</h1> </ReactBasicScroll> ; };}
Props
config
An object defines the configuration for then element, see here.