A few months ago, I became really frustrated with my dock constantly jumping between monitors due to the way my spaces were set up (each monitor had it’s own space so windows and apps could be assigned to a particular screen). Whenever my dock would move over, I would spend way too much time trying to get it to pop back up and move it back again.
Due to the fact that I record a ton of videos using my screen, I also wanted to have the max amount of real estate as possible and so decided to turn on the hiding feature. Then I discovered a really nifty command to adjust the time for the dock to animate out onto the screen or even disable it altogether.
defaults write com.apple.dock autohide-time-modifier -int 0;killall Dock
In order to change the animation duration, simply replace the “0” with any number. Of course, the higher you go the longer the animation will take. However, you can also use a small number like a decimal with a snippet like this:
defaults write com.apple.dock autohide-time-modifier -float 0.25;killall Dock
Here is the original code incase you want to reset these settings:
defaults delete com.apple.dock autohide-time-modifier;killall Dock
This code is taken from a 9to5Mac article here.