Mechanical behavior of a fluid-sensitive material during liquid diffusion