NH4Cl→NH3+HCl. rate of diffusion of substances depends too on their molar mass, the smaller the molar mass of a substance the faster the rate of diffusion of that substance. so the litmus paper initially turns blue because ammonia will get to it first since it diffuses faster than HCl.