Skip to content

Check background image perceived brightness and add a class light or dark to the element

License

Notifications You must be signed in to change notification settings

seventhqueen/jquery-imageness

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

jquery-imageness

Check background image perceived brightness and add a class light or dark to the element

Usage

jQuery('.my-element').imageness();

Result

Elements with class ".my-element" that have a background image set via CSS will get a 'dark-bg' or 'light-bg' depending on image perceived brightness.

About

Check background image perceived brightness and add a class light or dark to the element

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published