|Views Total:||1,283 views|
|Official Page:||Go to website|
|Last Update:||January 8, 2014|
data-adaptive-background attribute and apply it’s dominant color to the image’s parent element’s background.
Create a container and insert an image with the
data-adaptive-background attribute in it.
<div class="imgWrap"> <img class="center" src="1.jpg" data-adaptive-background="1" /> </div>
adaptive-backgrounds.js script at the end of your html document.
Call the function and you’re done.