In Firefox, open a new tab and type “about:config” in the address bar. Search for “browser.tabs.aimate” and double click to change the value to “false”.

Close the tab. That’s it.