Keep compass rose fixed while needle turns
This commit is contained in:
1 parent
260e0a3df5
commit
bb69b9fd0d
2 files changed
+4
-5
No files matched your search
+2
-3
@@ -1703,8 +1703,6 @@ label {
|
||||
.map-compass-rose {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
transform: rotate(var(--compass-rotation));
|
||||
transition: transform 120ms linear;
|
||||
}
|
||||
|
||||
.map-compass-direction {
|
||||
@@ -1743,10 +1741,11 @@ label {
|
||||
left: 50%;
|
||||
width: 4px;
|
||||
height: 23px;
|
||||
transform: translateX(-50%);
|
||||
transform: translateX(-50%) rotate(var(--compass-rotation));
|
||||
transform-origin: 50% 100%;
|
||||
border-radius: 4px 4px 1px 1px;
|
||||
background: #ef4444;
|
||||
transition: transform 120ms linear;
|
||||
}
|
||||
|
||||
.map-compass-needle::after {
|
||||
|
||||
Reference in new issue
Block a user