Fix transitions when JS not enabled