Skip to content

Component: Add CSS-only animated accordion / collapsible FAQ component #17388

Description

@Nareshkumawat-star

Feature Request

Accordions are one of the most common UI patterns for FAQs, settings panels, and content sections, but EaseMotion CSS has no accordion component.

Proposed Component

  • Pure CSS using grid-template-rows: 0fr → 1fr technique for smooth height animation
  • Toggle logic via :has() selector or :checked checkbox hack
  • Classes: .ease-accordion, .ease-accordion__item, .ease-accordion__header, .ease-accordion__body
  • Chevron icon rotation animation on open/close
  • CSS variable: --ease-accordion-duration
  • No JavaScript required

Files to Create

submissions/examples/ease-accordion/style.css
submissions/examples/ease-accordion/demo.html
submissions/examples/ease-accordion/README.md

Metadata

Metadata

Labels

GSSoC-26Official GSSoC 2026 issueanimationAnimation effects, hover interactions, motion ideas, transitionsgood first issueGood for newcomersgssoc:approvedApproved for GSSoC contributionshelp wantedExtra attention neededlevel:intermediateRequires moderate project understanding

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions