Get new jQuery plugins just once a week

BackgroundCheck

BackgroundCheck | js plugin to switch color according to backgrounds

BackgroundCheck is a javascript plugin that automatically switch to a darker or a lighter version of an element depending on the brightness of images behind it.
If an element overlaps any of the images, either .background–dark or .background–light is added to it. BackgroundCheck does not change an element’s style — you must do so using CSS.

Some of the options are :-

targets: Elements to be processed.

images: Images to be used.

changeParent: Determines if classes are added to a target or to its parent. Default false.