Add

Lorem ipsum

Lorem ipsum

A
A
A
CRO / Conversion

0 views

5 min

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';
});
});

good to know

For SEO, add the Schema.org FAQPage schema in JSON-LD to the head of your page. FAQs with structured data can appear in rich results in Google and are often cited first by AI tools (Perplexity, Gemini). Check out our tutorial on structured data in Webflow for setup instructions.

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

Good to know

Heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Lorem ipsum dolor sit amet consectetur.

Lorem ipsum dolor sit amet consectetur. Aliquam orci sagittis dignissim sapien praesent donec.

Lorem ipsum

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Published on

You might be interested in these tutorials

Similar tutorials

SEO / GEO

5 min read

5 views

How to Set Up a Redirect in Webflow? (2026)

Updated on 19.12.2025 by Sandro DA SILVA

SEO / GEO

5 min read

5 views

Add structured data to your Webflow site?

Updated on 21.08.2025 by Sandro DA SILVA

No-code

5 min read

5 views

How to Obfuscate a Link in Webflow

Updated on 23.04.2025 by Sandro DA SILVA

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

Ready to launch
Your business?

Alexandre

Max

Enora

Bryan

Cannelle

Tiphaine

You'll :heart: our collaboration...