Skip to content

feat: Add CSS Magnetic Pull Accordion for Dashboard Analytics Layouts…#39355

Merged
SAPTARSHI-coder merged 2 commits into
SAPTARSHI-coder:mainfrom
realtushartyagi:feature/css-magnetic-pull-accordion-realtushartyagi-33134
Jul 8, 2026
Merged

feat: Add CSS Magnetic Pull Accordion for Dashboard Analytics Layouts…#39355
SAPTARSHI-coder merged 2 commits into
SAPTARSHI-coder:mainfrom
realtushartyagi:feature/css-magnetic-pull-accordion-realtushartyagi-33134

Conversation

@realtushartyagi

Copy link
Copy Markdown
Contributor

Pull Request Description

Adds a new Example Component: CSS Magnetic Pull Accordion for Dashboard Analytics Layouts.
This submission introduces a premium, pure CSS accordion pattern built upon native HTML5 <details> and <summary> elements, ensuring zero JavaScript overhead and out-of-the-box keyboard accessibility. Visually, it features a unique "Magnetic Pull" interaction: when hovering or focusing the header, the entire row subtly pulls upwards via transform: translateY() on a bouncy cubic-bezier curve, while smoothly elevating its box-shadow. Furthermore, it utilizes modern CSS Grid transitions (grid-template-rows: 0fr to 1fr) to smoothly animate the opening and closing of the content panels, a technique previously thought impossible without JavaScript height calculations.

Fixes #33134


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-magnetic-pull-accordion-for-dashboard-analytics-layouts-realtushartyagi-33134/
  • 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, JavaScript-free Accordion component featuring a tactile "Magnetic Pull" hover state and smooth height transitions powered by CSS Grid.

How does a developer use it?

<!-- Requires only native HTML5 details/summary tags -->
<details class="ease-magnetic-accordion" name="analytics-panels">
    <summary class="ease-magnetic-summary">
        <div class="summary-content">
            <span class="icon">📈</span>
            <h3>User Engagement Metrics</h3>
        </div>
        <div class="ease-magnetic-indicator">
            <!-- SVG Chevron Here -->
        </div>
    </summary>
    <div class="ease-magnetic-content">
        <div class="ease-content-inner">
            <p>Your analytics charts and data go here.</p>
        </div>
    </div>
</details>

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

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-magnetic-pull-accordion-for-dashboard-analytics-layouts-realtushartyagi-33134

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-magnetic-pull-accordion-for-dashboard-analytics-layouts-realtushartyagi-33134

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 5ac9d66 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 Magnetic Pull Accordion for Dashboard Analytics Layouts

3 participants