Skip to content

feat: Add CSS Spring Physics Accordion for Product Catalog Layouts (#…#39366

Merged
SAPTARSHI-coder merged 2 commits into
SAPTARSHI-coder:mainfrom
realtushartyagi:feature/css-spring-physics-accordion-product-realtushartyagi-33122
Jul 8, 2026
Merged

feat: Add CSS Spring Physics Accordion for Product Catalog Layouts (#…#39366
SAPTARSHI-coder merged 2 commits into
SAPTARSHI-coder:mainfrom
realtushartyagi:feature/css-spring-physics-accordion-product-realtushartyagi-33122

Conversation

@realtushartyagi

Copy link
Copy Markdown
Contributor

Pull Request Description

Adds a new Example Component: CSS Spring Physics Accordion for Product Catalog Layouts.
This submission introduces a highly tactile, JavaScript-free accordion pattern built upon native HTML5 <details> and <summary> elements, tailored specifically for e-commerce and product detail layouts. It abandons static linear animations in favor of a sophisticated "Spring Physics" interaction model. This is achieved by combining modern CSS Grid height transitions (grid-template-rows) with a custom, snappy cubic-bezier(0.175, 0.885, 0.32, 1.1) timing function that slightly overshoots its target. Furthermore, the inner content (.accordion-body) features a secondary transform: scale(0.98) translateY(-4px) cascade, ensuring the text springs down and scales into view simultaneously with the main container expansion, mimicking the premium feel of native mobile shopping apps.

Fixes #33122


Type of Change

  • ✨ New animation / hover effect
  • 🧩 New component
  • 📝 Documentation improvement
  • 🐛 Bug fix in an existing submission
  • Other (describe below)

Submission Checklist

⚠️ PRs that fail this checklist will be closed without review.

  • All changes are inside submissions/examples/css-spring-physics-accordion-for-product-catalog-layouts-realtushartyagi-33122/
  • Includes demo.html — self-contained, opens in browser with no server
  • Includes style.css — raw CSS for the proposed feature
  • Includes README.md — what it does, how to use it, why it fits EaseMotion CSS
  • No changes to core/
  • No changes to components/
  • One feature per PR (no bundled unrelated changes)

Feature Description

What does this add?

A pure CSS Accordion component tailored for product catalogs, featuring a snappy, physics-based expansion animation built entirely with custom cubic-bezier curves and CSS Grid.

How does a developer use it?

<!-- Requires only native HTML5 details/summary tags -->
<details class="ease-spring-accordion" name="product-details">
    <summary class="ease-spring-summary">
        <h3>Product Description</h3>
        <div class="ease-spring-indicator">
            <span class="indicator-line horizontal"></span>
            <span class="indicator-line vertical"></span>
        </div>
    </summary>
    <div class="ease-spring-content">
        <div class="ease-content-inner">
            <div class="accordion-body">
                <p>Your product information goes here.</p>
            </div>
        </div>
    </div>
</details>

Copilot AI review requested due to automatic review settings July 8, 2026 19:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added animation Animation effects, hover interactions, motion ideas, transitions contribution ECSoC26 good first issue Good for newcomers GSSoC-26 Official GSSoC 2026 issue gssoc:approved Approved for GSSoC contributions help wanted Extra attention needed level:intermediate Requires moderate project understanding type:feature New functionality or enhancement labels Jul 8, 2026
@SAPTARSHI-coder

Copy link
Copy Markdown
Owner

✅ Submission Validation Passed!

Great job! All required files are present and valid.

📁 Folder: submissions/examples/css-spring-physics-accordion-for-product-catalog-layouts-realtushartyagi-33122

Files found:

  • demo.html
  • style.css
  • README.md

🚀 Next Steps:

  • A maintainer will review your PR
  • Respond to any feedback if requested
  • Once approved, your contribution will be merged!

Thank you for contributing to EaseMotion CSS! 🎉

@SAPTARSHI-coder

Copy link
Copy Markdown
Owner

✅ Submission Validation Passed!

Great job! All required files are present and valid.

📁 Folder: submissions/examples/css-spring-physics-accordion-for-product-catalog-layouts-realtushartyagi-33122

Files found:

  • demo.html
  • style.css
  • README.md

🚀 Next Steps:

  • A maintainer will review your PR
  • Respond to any feedback if requested
  • Once approved, your contribution will be merged!

Thank you for contributing to EaseMotion CSS! 🎉

@SAPTARSHI-coder SAPTARSHI-coder merged commit 9c4d9f6 into SAPTARSHI-coder:main Jul 8, 2026
13 checks passed
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

🎉 Congratulations on your PR merge, @realtushartyagi! 🚀

Thank you so much for your valuable contribution to EaseMotion CSS! Your code is now merged into the main branch.

🎮 Join our Discord Server!
We have an official Discord server for EaseMotion CSS! Join us to connect with other developers, seek help, discuss design choices, and share your creations in the showcase channel: Join the EaseMotion CSS Discord 💜

Thank you again, and happy coding! 💻

@github-actions github-actions Bot added accepted Contribution approved for integration into EaseMotion CSS good-pr integrated Successfully merged and included in the framework labels Jul 8, 2026
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

🎉 Pull Request Integrated!

Thank you for your contribution, @realtushartyagi! Your changes have been successfully merged into main and will be credited to your wall. 🚀

📊 Daily Merge Progress: You have merged 10/150 PRs today. Daily quota resets in 4 hrs.

📢 GSSoC Leaderboard Status Update:
Please note that the GSSoC leaderboard servers are currently experiencing platform-wide downtime, so your points may take a few days to reflect. Rest assured, your merged PR is fully recorded in our repository history and all GSSoC labels are correctly assigned.

🎮 Join our Discord Server!
We have an official Discord server for EaseMotion CSS! Join us to connect with other developers, seek help, discuss design choices, and share your creations in the showcase channel: Join the EaseMotion CSS Discord 💜

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accepted Contribution approved for integration into EaseMotion CSS animation Animation effects, hover interactions, motion ideas, transitions contribution ECSoC26-SPAM ECSoC26 good first issue Good for newcomers good-pr gssoc:approved Approved for GSSoC contributions GSSoC-26 Official GSSoC 2026 issue help wanted Extra attention needed integrated Successfully merged and included in the framework level:intermediate Requires moderate project understanding type:feature New functionality or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhancement: Add CSS Spring Physics Accordion for Product Catalog Layouts

3 participants