Alhadis / Accordion

Silky-smooth accordion widgets with no external dependencies.
https://www.npmjs.com/package/accordion
ISC License
32 stars 11 forks source link

Add Transition for Main Accordion Element #17

Closed bfiessinger closed 4 years ago

Alhadis commented 4 years ago

The container element's transitions are controlled by the .edge-visible class, which is automatically toggled based on whether an accordion's bottom-edge is (or about to be) visible. This keeps animations smooth, especially on mobile devices and pages with tonnes of content.

Note that you can use the edgeClass option to pick another name if you don't like edge‑visible.