feat: Add CSS Spring Physics Accordion for Product Catalog Layouts (#…#39366
Conversation
✅ Submission Validation Passed!Great job! All required files are present and valid. 📁 Folder:
|
…-realtushartyagi-33122
✅ 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 10/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 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, snappycubic-bezier(0.175, 0.885, 0.32, 1.1)timing function that slightly overshoots its target. Furthermore, the inner content (.accordion-body) features a secondarytransform: 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
Submission Checklist
submissions/examples/css-spring-physics-accordion-for-product-catalog-layouts-realtushartyagi-33122/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 product catalogs, featuring a snappy, physics-based expansion animation built entirely with custom
cubic-beziercurves and CSS Grid.How does a developer use it?