Vibrant.js + masterslider
Shnalla opened this issue · 1 comments
Shnalla commented
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
jariz 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.