How to disable mission control animation in osx lion

This post will show you how to disable the osx mission control animation

open terminal:


defaults write com.apple.dock expose-animation-duration -float 0
killall Dock

to get the animation back


defaults delete com.apple.dock expose-animation-duration
killall Dock