To control the corner rounding of a Webflow accordion when it opens or closes, you can use Webflow’s interactions combined with conditional styling on open/closed states.
accordion-item open
, that activates when the accordion is expanded..accordion-item
for the closed state (with border-radius)..accordion-item.open
with modified or removed corner radius.Go to Interactions panel (lightning icon in the right sidebar).
Select the accordion toggle element, and set up a Mouse Click (Tap) interaction.
In the First Click:
Add a class (e.g., open
) to the accordion wrapper.
Change the border-radius using style or by swapping classes.
Expand the content using a show/hide and height animation.
In the Second Click:
Remove the open
class.
Restore the original border-radius.
Collapse the content.
Adjust accordion corner rounding in Webflow by using combo classes that change styles (like border-radius
) based on open/closed accordion states, and control the class toggling through click-triggered interactions on the toggle element.