nav transition (works for modern browsers)