Not the Toolbox, but the Tool Settings dialogs (and others)... The automatically collapsing panels can be annoying on a small (short) screen, but is there because you cannot view the dialog with all panels open. Typically, if you move the dialog to the top of your screen, you should not experience all of the animation you're describing (unless you're on a tiny monitor).
One of the forum moderators
AC 28 USA and earlier • macOS Sonoma 14.7.1, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB