Mitigate white flasheq

This commit is contained in:
Joseph Garrone 2024-06-06 08:51:27 +02:00
parent f3036ec2c3
commit c84c2a3be8

View File

@ -3,7 +3,23 @@
padding: 0; padding: 0;
} }
body:not(.kcBodyClass) { /* Following styles are just meant to avoid white flash when switching from one story to another */
background-color: #393939; @keyframes fadeToTransparent {
from {
background-color: #393939;
}
to {
background-color: transparent;
}
}
html {
animation: fadeToTransparent 500ms forwards ease-in;
}
body>.sb-preparing-docs {
visibility: hidden;
}
body>.sb-preparing-story {
visibility: hidden;
} }
</style> </style>