Get the visually nearest element from a specified set of elements.