jariz / vibrant.js

Extract prominent colors from an image. JS port of Android's Palette.

Home Page:http://jariz.github.io/vibrant.js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vibrant.js + masterslider

Shnalla opened this issue · comments

Hi,

I'm trying to use vibrant.js with masterslider.
The "issue" is that Masterslider uses data-src attributes

<img src="images/blank.gif')" data-src="path-to-my-image" alt="alt text">

I'm only able to retrieve blank.gif

commented

Having a quick read through their docs, it seems lke they added the 'data-src' property to prevent all images being loaded in at once.
So yea, they do switch the data-src back to the src attr at some point.
It seems like there are a couple events you can hook (with CHANGE_START looking like what you need).
If you hook vibrant to the next slide at that event, it should probably work.

Hope I've helped you, I don't really see this as an issue with Vibrant itself, so I'll close this now.