16
Simple JS that checks if the background is dark enough to display white content and vice versa (kennethcachia.com)
over 9 years ago from Jul Delanoy, Product designer @ Product Hunt / Angellist
over 9 years ago from Jul Delanoy, Product designer @ Product Hunt / Angellist
Not sure if I saw it posted here or elsewhere a while back, but this is a similar idea:
http://briangonzalez.github.io/jquery.adaptive-backgrounds.js
Pretty impressive, seems to make use of HTML canvas for the images.
Designer News
Where the design community meets.
Designer News is a large, global community of people working or interested in design and technology.
Have feedback?
Login to Comment
You'll need to log in before you can leave a comment.
LoginRegister Today
New accounts can leave comments immediately, and gain full permissions after one week.
Register now