Really simple Modal with "react-modal"
This Modal is really easy to understand
https://youtu.be/10FNqoPpNbE - Watch the tutorial!
youtube
Styles passed into the Modal via the style prop are merged with the defaults. The default styles are defined in the Modal.defaultStyles object and are shown below.
<Modal
style={{
overlay: {
position: 'fixed',
top: 0,
left: 0,
right: 0,
bottom: 0,
backgroundColor: 'rgba(255, 255, 255, 0.75)'
},
content: {
position: 'absolute',
top: '40px',
left: '40px',
right: '40px',
bottom: '40px',
border: '1px solid #ccc',
background: '#fff',
overflow: 'auto',
WebkitOverflowScrolling: 'touch',
borderRadius: '4px',
outline: 'none',
padding: '20px'
}
}}
>
https://reactcommunity.org/react-modal/styles/ - more!
react
npm i react
npm i react-dom
npm i react-scripts
npm i react-router-dom
npm i node-sass --save
npm i autoprefixer@9.8.0
npm i gh-pages --save-dev
npm i gsap
npm i react-modal