mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 00:32:21 +00:00
Show the rail highlight at icon size when a first panel opens
Opening a panel from the labelled rail folds its pills to icons over a few frames, and the highlight faded in at a pill's width and then shrank, as did the open button's own fill. The highlight now appears only once the open button is an icon again (square), its size changes at once rather than easing, and the open button carries no fill of its own. Co-authored-by: Sameh Khamis <[email protected]>
This commit is contained in:
1 parent
9261279639
commit
129b35e470
3 files changed
+13
-5
No files matched your search
@@ -31,10 +31,11 @@
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transform: translate(var(--rail-glide-x, 0), var(--rail-glide-y, 0));
|
||||
/* Only the position slides. The size follows at once: it changes only
|
||||
when the rail changes shape (its labelled pills folding to icons as a
|
||||
panel opens), and a size easing there reads as a stretch. */
|
||||
transition:
|
||||
transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
|
||||
width 380ms cubic-bezier(0.22, 1, 0.36, 1),
|
||||
height 380ms cubic-bezier(0.22, 1, 0.36, 1),
|
||||
border-radius var(--transition-fast),
|
||||
opacity 200ms ease;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user