Site: buildings lift on hover and focus, sink on press; ordered keyboard links
This commit is contained in:
5 files changed
+138
-8
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user