Page 1 of 1

How do you control what image Unveil controls?

Posted: Tue Jun 28, 2016 3:42 pm
by simonmlewis
https://luis-almeida.github.io/unveil/
We are trying to use this on our homepage. It has mostly DIVs with images.
But at the top, we use the "Owl" slider. If I use this unveil, it kills that slider, and stops it working.

Is there a way to tell, per page which images NOT to use unveil? As the script just seems to overide all "img" tags in the page, after the script.

Re: How do you control what image Unveil controls?

Posted: Tue Jun 28, 2016 7:59 pm
by Celauran
Sure. Instead of $('img'), just use a different selector.

Re: How do you control what image Unveil controls?

Posted: Wed Jun 29, 2016 3:00 am
by simonmlewis
How? Is it not tied to the img tag?

Re: How do you control what image Unveil controls?

Posted: Wed Jun 29, 2016 5:46 am
by Celauran
That's just a selector. You could toss an 'unveil' class on the images you want affected and then use

Code: Select all

$('img.unveil').unveil();