jQuery Nearest Element plugin

jQuery Nearest Element plugin

This plugin finds the elements in a page that are closest to a particular point or element, based on pixel dimensions. This is not to be confused with jQuery’s own .closest() method, which is based on the DOM tree, not pixels.

There are also helper methods to find elements that are the furthest away from or touching a point or element.

Leave a Reply