Skip to content

CRO / Conversion5 min read

How to Create a FAQ Accordion in Webflow Without a Library

Learn how to build a FAQ accordion in Webflow without a library, using native interactions and an optional script.

In this tutorial, Sandro, cofounder of Gemeos Agency, a Webflow agency, shows you how to build a FAQ accordion in Webflow without an external library, using only native interactions.

Example

What is Webflow? +
Webflow is a no-code website builder that generates clean HTML, CSS, and JavaScript. It combines a visual editor with the power of a real CMS.
Do you need to know how to code to use Webflow? +
No. Webflow is built for designers and no-code teams. CSS knowledge helps, but it isn't required to build professional websites.
Is Webflow good for SEO? +
Yes. Webflow generates semantic code and lets you customize meta tags, structured data, and sitemaps. It's one of the CMS platforms best suited to technical SEO.
MethodAdvantageDrawback
Webflow interactions (this tutorial)No code, visible in the DesignerLimited to one logic path per interaction
CSS :checked hackNo JSRequires an HTML embed
Finsweet Attributes TabsMore controlExternal script to load

1. Build the accordion structure

For each FAQ item, create a Div containing: a question Div (clickable) and an answer Div (hidden by default with display: none). Add a "+" icon or an arrow inside the question Div.

2. Add the interaction to the question Div

Select the question Div. In the Interactions panel, create a Mouse click (tap) trigger. Action: show/hide the answer Div with a height or display transition. Use the Toggle option to open and close on click.

3. Handle the rotating icon

Add a second action in the same interaction to rotate the arrow icon: Rotate 0° → 180° on click, with Toggle. This gives a clear visual cue for the open/closed state.

4. Close the other items automatically (optional)

To automatically close the other items when one opens, add a "Combo class" interaction or use this lightweight script:

document.querySelectorAll('.faq-question').forEach(function(q) {
  q.addEventListener('click', function() {
    const answer = q.nextElementSibling;
    document.querySelectorAll('.faq-answer').forEach(function(a) {
      if (a !== answer) a.style.display = 'none';
    });
    answer.style.display = answer.style.display === 'block' ? 'none' : 'block';
  });
});

Conclusion

A FAQ accordion improves readability and SEO. Use cases:

  • FAQ pages for brochure websites or SaaS products
  • Q&A section on a landing page
  • Documentation with collapsible sections

Published on May 19, 2026

Sandro DA SILVA

Growth Marketer, Webflow expert, and jack-of-all-trades. Sandro handles commercial operations, ensures projects run smoothly, and addresses marketing-related issues (SEO, Tracking, Copywriting, etc).

You might be interested in these tutorials

Related tutorials

See all

You're going to working with us, guaranteed

Ready to launch your business?

get a quote

Let’s f*****G GO !!