Smooth FAQ Accordion
A polished FAQ accordion with springy expand animation, gradient chevrons, and glowing active states.
Smooth FAQ Accordion
by FreeCsStyles Dev's
AccordionsModern
🌐HTML/CSS
#accordion#faq#expand#collapse
Embed this component
Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/smooth-faq-accordion.
<iframe src="/embed/smooth-faq-accordion" sandbox="allow-scripts" loading="lazy" title="Smooth FAQ Accordion" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>Implementation code
Copy the HTML and CSS for Smooth FAQ Accordion. The HTML and CSS variants are self-contained; framework variants assume that framework's project setup.
HTML
<div class="faq-list">
<details class="faq-item" open>
<summary class="faq-q">
<span>Is it free to use?</span>
<span class="faq-icon">+</span>
</summary>
<div class="faq-a">
Yes, all components are free with attribution. Pro plans unlock advanced features.
</div>
</details>
<details class="faq-item">
<summary class="faq-q">
<span>Which frameworks are supported?</span>
<span class="faq-icon">+</span>
</summary>
<div class="faq-a">
React, Vue, Angular, Svelte, Tailwind, and 10+ more.
</div>
</details>
<details class="faq-item">
<summary class="faq-q">
<span>Can I use it commercially?</span>
<span class="faq-icon">+</span>
</summary>
<div class="faq-a">
Absolutely. All components are MIT-licensed.
</div>
</details>
</div>CSS
.faq-list {
max-width: 360px;
display: flex;
flex-direction: column;
gap: 8px;
}
.faq-item {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 14px;
overflow: hidden;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item[open] {
border-color: rgba(139, 92, 246, 0.35);
box-shadow: 0 8px 30px rgba(139, 92, 246, 0.15);
}
.faq-q {
list-style: none;
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 16px;
cursor: pointer;
font-size: 13.5px;
font-weight: 700;
color: rgba(255, 255, 255, 0.85);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-icon {
width: 24px;
height: 24px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(255, 255, 255, 0.06);
color: rgba(255, 255, 255, 0.4);
font-size: 14px;
font-weight: 800;
transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, color 0.3s ease;
}
.faq-item[open] .faq-icon {
transform: rotate(45deg);
background: rgba(139, 92, 246, 0.2);
color: #8b5cf6;
}
.faq-a {
padding: 0 16px 16px;
font-size: 12.5px;
line-height: 1.65;
color: rgba(255, 255, 255, 0.55);
}Where Smooth FAQ Accordion fits
- FAQ Pages
- Help Centers
- Docs
Topics
- #accordion
- #faq
- #expand
- #collapse