feat: Add CSS Zoom-Out Accordion for Marketing Landing Page Layouts (…#39369
Conversation
✅ Submission Validation Passed!Great job! All required files are present and valid. 📁 Folder:
|
…ltushartyagi-33079
✅ 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 Zoom-Out Accordion for Marketing Landing Page Layouts.
This submission introduces a highly tactile, JavaScript-free accordion pattern built upon native HTML5
<details>and<summary>elements, tailored specifically for Marketing FAQ sections. It utilizes a sophisticated "Zoom-Out" psychological interaction model: when a user clicks to expand a section, the entire accordion card subtly scales down (transform: scale(0.98)) and its shadow flattens. This creates a "pressed" effect that draws the user's focus inward to the newly revealed content. Height expansion is handled natively using modern CSS Grid transitions (grid-template-rows: 0frto1fr), bypassing the need for heavy JS height calculations.Fixes #33079
Type of Change
Submission Checklist
submissions/examples/css-zoom-out-accordion-for-marketing-landing-page-layouts-realtushartyagi-33079/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 marketing pages, featuring a tactile "Zoom-Out" scale transition built entirely with custom CSS curves and CSS Grid.
How does a developer use it?