So I have a container with overflow-y: scroll. The container’s height can change, most often it will be reduced. The change will be animated using jQuery. But when container is animated, the scrollbar disappears and it only reappears when the animation is complete. Is there anyway to change the dimensions of the scrollbar alongside the container’s animation?
Here’s an example on jsfiddle: http://jsfiddle.net/SPLt2/
The problem is that
animateautomatically sets the style tooverflow: hidden.You can circumvent this by overriding the style with a step function: