feat(ui): add fluid section motion and interaction polish

This commit is contained in:
2026-11-03 18:22:51 +05:30
parent e7aa732892
commit 561718870b
3 changed files with 75 additions and 1 deletions
+45
View File
@@ -398,4 +398,49 @@ h1, h2, h3, h4, h5, h6, .text-3d-chiseled {
box-shadow: 0 4px 8px -2px rgba(37, 99, 235, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
/* A consistent, quiet interaction language for the whole studio. */
:where(a, button, [role="button"], input, select, textarea) {
-webkit-tap-highlight-color: transparent;
}
:where(button, [role="button"], a[href]):focus-visible {
outline: 3px solid rgba(37, 99, 235, 0.42);
outline-offset: 3px;
}
:where(button, [role="button"]) {
transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
box-shadow 220ms ease, background-color 220ms ease, border-color 220ms ease;
}
:where(button, [role="button"]):active {
transform: scale(0.975);
}
:where(a[href]) {
text-decoration-thickness: from-font;
text-underline-offset: 0.18em;
}
[data-section-entrance] {
transform-origin: 50% 40%;
backface-visibility: hidden;
}
::selection {
color: #fff;
background: #315fcb;
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
scroll-behavior: auto !important;
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}