When you are looking at the objects closer to the eye, the focal length of eye lens:
When you look at the objects nearer to the eye, ciliary muscles contract, the curvature of the lens increase and the lens becomes thicker, and the focal length of the eye lens decreases.