react-simple-image-slider
react-simple-image-slider copied to clipboard
responsive
how can i responsive?
Hi @alirezahm7
Try to modify width, number props
Thanks
how can i responsive?
Hi @alirezahm7,
I made it responsive by making a div which has position relative and and i gave the SimpleImageSlider an absolute position => style={{position: 'absolute', top: '0', right: '0'}}. The width and the height are 100%. Make a const ImageSliderStyle = { width: '100%', height: '100%'} and use these keys in your SimpleImageSlider like this: width={ImageSliderStyle.width} and height={ImageSliderStyle.height}.