CSS animation speed follows simulation speed
This commit is contained in:
parent
eb9792a8d7
commit
3a409dfe1e
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ export const TrafficLight = memo(function TrafficLight({state, speed, raiseUIEve
|
|||
src: url(${fontDigital});
|
||||
}
|
||||
image {
|
||||
transition: opacity 300ms ease;
|
||||
transition: opacity ${300/speed}ms ease;
|
||||
}
|
||||
.hidden {
|
||||
opacity: 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue