CSS animation speed follows simulation speed

This commit is contained in:
Joeri Exelmans 2025-10-31 16:37:31 +01:00
parent eb9792a8d7
commit 3a409dfe1e

View file

@ -63,7 +63,7 @@ export const TrafficLight = memo(function TrafficLight({state, speed, raiseUIEve
src: url(${fontDigital}); src: url(${fontDigital});
} }
image { image {
transition: opacity 300ms ease; transition: opacity ${300/speed}ms ease;
} }
.hidden { .hidden {
opacity: 0; opacity: 0;