Currently, I am working on a simple on-page JavaScript application that consists of multiple data pages within one main page. My goal is to create a horizontal accordion effect where clicking on headers on either side will smoothly switch between the different data pages. The challenge lies in making sure that this accordion fills the entire screen without leaving any empty space. Has anyone come across a JavaScript library that can help achieve this specific accordion layout?
Thank you for your assistance.
Edit: Although I could adjust the dimensions of a standard accordion library based on the window size upon loading the page, it struggles to adapt well when resizing the page.