Site: buildings lift on hover and focus, sink on press; ordered keyboard links

This commit is contained in:
ZacharyZhang-NY committed 2026-10-08 23:40:54 -04:00
1 parent 366f7529ba
commit 0f62a36182
5 files changed
+138 -8

No files matched your search

+24
View File
@@ -30,3 +30,27 @@
animation: none;
}
}
/* Interaction moves by translate; landing owns transform. */
.block {
transition: translate 0.15s ease-out;
}
.block[data-part] {
cursor: pointer;
outline: none;
}
.block.lifted {
translate: 0 calc(-1 * var(--step));
}
.block.lifted.pressed {
translate: 0 0;
}
@media (prefers-reduced-motion: reduce) {
.block {
transition: none;
}
}