feat: Add CSS Spring Physics Accordion for Creative Portfolio Layouts…#39362
Conversation
✅ Submission Validation Passed!Great job! All required files are present and valid. 📁 Folder:
|
✅ Submission Validation Passed!Great job! All required files are present and valid. 📁 Folder:
|
🎉 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! Thank you again, and happy coding! 💻 |
|
🎉 Pull Request Integrated! Thank you for your contribution, @realtushartyagi! Your changes have been successfully merged into 📊 Daily Merge Progress: You have merged 11/150 PRs today. Daily quota resets in 4 hrs. 📢 GSSoC Leaderboard Status Update: 🎮 Join our Discord Server! |
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 customcubic-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 secondarytransform: translateY(20px)cascade, ensuring the text springs up into view slightly behind the main container expansion.Fixes #33131
Type of Change
Submission Checklist
submissions/examples/css-spring-physics-accordion-for-creative-portfolio-layouts-realtushartyagi-33131/demo.html— self-contained, opens in browser with no serverstyle.css— raw CSS for the proposed featureREADME.md— what it does, how to use it, why it fits EaseMotion CSScore/components/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-beziercurves and CSS Grid.How does a developer use it?