Problem/Motivation
The header search bar opens and closes instantly — Bootstrap toggles display, so the band jumps in and out and the main menu is simply covered. The design prototype crossfades: the menu links and the "Search" label fade out while the bar and its close X fade in on the same line, with a small vertical settle, and the close is the exact mirror. Sampled in the prototype: about 20% at 45ms, 70% at 145ms, settled by 220ms.

Opening.

Closing.
Both recorded with the transition slowed to 1100ms (about 5x) so the curve is legible frame by frame; the shipped duration is 220ms.
See the attached GIFs, and the geometry fix in fix: Header search bar does not follow the design — geometry, background and mobile band, which this builds on and should land first.
Steps to reproduce
- Install the Educare site template on Varbase 11 and open the front page at 1440px.
- Click the header search icon, then the close X.
- Both happen instantly, with no crossfade.
Proposed resolution
In components/organisms/icon-toggle:
- Crossfade the panel on
opacityover 220ms with a 4px settle on thetranslateproperty (transformis already used for centring), plustransition-behavior: allow-discreteand@starting-styleto animate across Bootstrap'sdisplaytoggle; without support the panel appears as before. - Add
is-search-opento the measured band fromicon-toggle.jsonshow.bs.dropdown/hide.bs.dropdownso the main menu fades over the same 220ms. - Guard both with
prefers-reduced-motion: reduce.
Files: icon-toggle.scss, icon-toggle.css (built), icon-toggle.js.
Merge request: !31.
AI-Generated: Yes
Remaining tasks
- ✅ File an issue
- ✅ Addition/Change/Update/Fix
- ❌ Testing to ensure no regression
- ➖ Automated unit/functional testing coverage
- ➖ Developer Documentation support
- ➖ User Guide Documentation support
- ❌ UX/UI designer responsibilities
- ❌ Accessibility and Readability
- ❌ Reviewed by a human
- ❌ Code review by maintainers
- ❌ Full testing and approval
- ❌ Credit contributors
- ❌ Review with the product owner
- ✅ Update Release Notes
- ✅ Release
User interface changes
- Yes — the search bar now crossfades with the main menu instead of appearing instantly.
API changes
- N/A
Data model changes
- N/A
Release notes snippet
- Added the design's open and close motion to the header search bar.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | search-close-motion.gif | 77.09 KB | rajab natshah |
| #2 | search-open-motion.gif | 73.97 KB | rajab natshah |
Issue fork vartheme_bs5_educare-3618070
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
rajab natshahRecordings from a live Educare build on Varbase 11:
search-open-motion.gif— opening: the main menu fades out while the bar and its close X fade in on the same line, with the small vertical settle.search-close-motion.gif— closing: the exact mirror.Both were recorded with the transition slowed to 1100ms (about 5x) so the curve is legible frame by frame. The shipped duration is 220ms.
Also trimmed the issue summary.
AI-Generated: Yes
Comment #4
rajab natshahComment #6
rajab natshahComment #7
rajab natshahComment #8
rajab natshah✅ Released vartheme_bs5_educare-1.0.0-alpha4