Answers for "slides stack on each other"

1

slides stack on each other

//prevent divs in stack on each other when position:absolute in responsive mode
//use 'vw'(automatically responsive) instead of 'px'(will stretch the elements when page responsive)
//each card width:
cards.forEach((card, index) => card.style.left = index * 90 + 'vw');
Posted by: Guest on July-23-2020

Browse Popular Code Answers by Language