Turning off the transition animation when changing workspaces in Compiz (GNOME2/UNITY)
To change the animation you will need CompizConfig settings manager
To install it:
apt-get install compizconfig-settings-manager
or via Ubuntu Software Center.
Open CompizConfig settings manager.
Under Desktop → Desktop Wall → Viewport switching set Wall sliding duration to 0
.
for Ubuntu 18.04 I use this, you just need to install the gnome-shell extension (for either chrome, firefox) and then
https://extensions.gnome.org/extension/1328/disable-workspace-switch-animation/