I am facing an issue with an animation that extends beyond the body, while the situations before and after the animation may or may not do so. I considered applying overflow:hidden;
to the body
element (which is set to match the viewport height), but if the content does overflow the body, I want a scrollbar to appear at the end of the animation.
My proposed solution was to use transition:overflow 0s ease 0.5s
in order to delay the overflow property, hiding everything during the animation and then setting it to initial
or visible
once the animation has finished, allowing the scrollbar to appear only when necessary. However, this approach does not work because overflow
is not an animatable property. So my question is, can non-animatable properties be delayed using pure CSS?