I am using web animations api to animate a div to a specific height. I am using fill mode 'forwards' to preserve the height post animation. However, later on I would like to manually set the height through CSS back to 'auto', but by setting the fill mode to forwards it seems to prevent CSS's ability to affect the height property after the animation finishes, even if I set it on the element.
I cannot set the height back to auto immediately after the animation plays, so I was wondering if there was a way to override the properties set by fill 'forwards'?