Move the navigation transition duration into less variable

Also adds note of where this is used in javascript. Amends #658