Skip to content

feat: Add CSS Spring Physics Accordion for Creative Portfolio Layouts…#39362

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

feat: Add CSS Spring Physics Accordion for Creative Portfolio Layouts…#39362
SAPTARSHI-coder merged 2 commits into
SAPTARSHI-coder:mainfrom
realtushartyagi:feature/css-spring-physics-accordion-realtushartyagi-33131

Conversation

@realtushartyagi

Copy link
Copy Markdown
Contributor

Pull Request Description

Adds a new Example Component: CSS Spring Physics Accordion for Creative Portfolio Layouts.
This submission introduces a highly tactile, JavaScript-free accordion pattern built upon native HTML5 <details> and <summary> elements. Designed for premium creative portfolios, it replaces static linear animations with a sophisticated "Spring Physics" interaction model. This is achieved by manipulating modern CSS Grid transitions (grid-template-rows) using a custom cubic-bezier(0.34, 1.15, 0.64, 1) timing function that deliberately overshoots its target and settles back into place. Furthermore, the inner content features a secondary transform: translateY(20px) cascade, ensuring the text springs up into view slightly behind the main container expansion.

Fixes #33131


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-creative-portfolio-layouts-realtushartyagi-33131/
  • 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 creative portfolios, featuring a bouncy, 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="portfolio-projects">
    <summary class="ease-spring-summary">
        <h2 class="project-title">Project Name</h2>
        <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="project-details">
                <p>Case study content goes here.</p>
            </div>
        </div>
    </div>
</details>

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

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-creative-portfolio-layouts-realtushartyagi-33131

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-creative-portfolio-layouts-realtushartyagi-33131

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 d219423 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 11/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 Creative Portfolio Layouts

3 participants