From your Post #2
void theBody.offsetWidth;
Was used with 2 keyframes/animations, not 1.
In saying that, void theBody.offsetWidth;
was never used with 1 keyframe.
Am I missing something here?
body {
background: #353198;
animation: fade 2s ease 0s forwards;
}
.bodytoggle {
animation: fade2 2s ease forwards;
}
@keyframes fade {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes fade2 {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}