Select the accordion behavior depending on users' needs
Commonly, you can only open one section at a time with an accordion. When users click another section, the open one collapses automatically. This reduces user actions so they don't need to close it manually, and keeps the page uncluttered. The downside to this behavior is that users cannot compare content across multiple sections simultaneously.
Avoid automatic collapsing and keep all sections expanded by default. Scrolling is much easier and requires less cognitive load than clicking a section each time you need to recall the information.[1] Automatic collapsing is only safe when there aren't many sections, and users don't need to jump over the page scrolling up and down. Providing a Collapse All/Expand All button can enhance usability for accordions with many sections.
References
- Accordions for Complex Website Content on Desktops | Nielsen Norman Group