The lens of the eye is shaped like the lens in a camera and does a similar job. It adds to the focusing power of the cornea and makes fine adjustments, depending on whether the object is near or far away.
The eye’s lens is slightly elastic and focuses by changing shape. After the lens, the light rays go through the clear jelly in the middle of the eye ball to the retina. In distant vision
(A) the muscles relax and the ligaments pull the lens into a disc shape. Close vision
(B) requires a more circular lens, so the muscles constrict and the ligaments relax.