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.
How do you control what image Unveil controls?
Moderator: General Moderators
-
simonmlewis
- DevNet Master
- Posts: 4435
- Joined: Wed Oct 08, 2008 3:39 pm
- Location: United Kingdom
- Contact:
How do you control what image Unveil controls?
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
All the best from the United Kingdom.
Re: How do you control what image Unveil controls?
Sure. Instead of $('img'), just use a different selector.
-
simonmlewis
- DevNet Master
- Posts: 4435
- Joined: Wed Oct 08, 2008 3:39 pm
- Location: United Kingdom
- Contact:
Re: How do you control what image Unveil controls?
How? Is it not tied to the img tag?
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
All the best from the United Kingdom.
Re: How do you control what image Unveil controls?
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();