Ophthalmic anesthetics are eye drops, gels, or ointments that contain an area anesthetic and may be administered directly into the attention. Ophthalmic anesthetics block the transmission of pain signals from the nerve endings of the attention to the brain, numbing the attention.