PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sat Oct 21, 2017 3:27 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Tue Jun 28, 2016 3:42 pm 
Offline
DevNet Master

Joined: Wed Oct 08, 2008 3:39 pm
Posts: 4349
Location: United Kingdom
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.

_________________
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.


Top
 Profile  
 
PostPosted: Tue Jun 28, 2016 7:59 pm 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6390
Location: Montreal, Canada
Sure. Instead of $('img'), just use a different selector.

_________________
Supported PHP versions No longer supported versions


Top
 Profile  
 
PostPosted: Wed Jun 29, 2016 3:00 am 
Offline
DevNet Master

Joined: Wed Oct 08, 2008 3:39 pm
Posts: 4349
Location: United Kingdom
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.


Top
 Profile  
 
PostPosted: Wed Jun 29, 2016 5:46 am 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6390
Location: Montreal, Canada
That's just a selector. You could toss an 'unveil' class on the images you want affected and then use
Syntax: [ Download ] [ Hide ]
$('img.unveil').unveil();

_________________
Supported PHP versions No longer supported versions


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Yahoo [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group