Collapse uses a max-height CSS transition driven by a Datastar signal. No JavaScript needed for the animation — just CSS and reactive attributes.
Advanced settings
These settings are hidden by default and revealed with a smooth animation. Works with any content — forms, images, long text.