added scene transitions

This commit is contained in:
Felix Baumgärtner 2024-08-06 19:40:03 +02:00
parent 6e5e9947a4
commit 34ca2545ca

View File

@ -0,0 +1,22 @@
.SceneTransition {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
background: #333;
opacity: 0;
animation: scene-transition-fade-in 0.2s forwards;
}
.SceneTransition.fade-out {
animation: scene-transition-fade-out 0.2s forwards;
}
@keyframes scene-transition-fade-in {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes scene-transition-fade-out {
from { opacity: 1; }
to { opacity: 0; }
}