In this post is a list of 4 Detect DarkLight Background jQuery Plugins. They are pretty useful for websites with dynamic backgrounds where light is used on dark backgrounds and dark used on light background.

1. BackgroundCheck

Automatically switch to a darker or a lighter version of an element depending on the brightness of images behind it.

Source + Demo

2. colourBrightness.js

A lightweight and easy-to-use jQuery plugin that determines if the background colour of an element is light or dark.


3. jquery.adaptive-backgrounds.js

A simple jQuery plugin to extract the dominant color of an image and apply it to the background of its parent element.


4. getImageBrightness

Brightness detection script.

Source + Demo

Further Reading:

Sam Deering is a Front-end Web Developer who specialises in JavaScript & jQuery. Sam is driven and passionate about sharing his knowledge to educate others.

Free Guide:

How to Choose the Right Charting Library for Your Application

How do you make sure that the charting library you choose has everything you need? Sign up to receive this detailed guide from FusionCharts, which explores all the factors you need to consider before making the decision.

No Reader comments

Special Offer
Free course!

Git into it! Bonus course Introduction to Git is yours when you take up a free 14 day SitePoint Premium trial.