-
Notifications
You must be signed in to change notification settings - Fork 280
Example of using thumb option? #54
Comments
well, it should be a relative path from the triggering element, to the thumb, assuming they both are inside a shared element |
In my case they are both inside the figure element, so if I'm understanding this correctly, shouldn't |
what is the js code you initialize photobox with? |
For the above html I am using this code:
It works great if i just use a link instead of a div as the container but I would like to understand how to make the relative paths for a specific project. Here is a different gallery using links instead of div's you might find interesting. I am using photobox with isotope, infinitescroll and added and option for CSS3 transitions to the slides and I am using Color Thief to change the slide background color to the dominant color each image on each transition. |
use it like this: HTML
Javascript
so the |
if |
yes, you just need to pass the right selector, for parent use ':parent'. read more here - http://jqapi.com/#p=parent-selector |
Yeah, tried that but got an error. Thanks anyway. |
ok I see...it's a bit of a difficult situation. how does an item of the gallery looks like in terms of DOM? |
Sorry, I'm not completely understanding. Do you want to see what is contained in #pbOverlay when the lightbox is opened?
|
Hi, I'm using photobox. <script> $(document).ready(function(){ $('#gallery').photobox('a', {thumbs: true}); $('#showPopup').click(function(){ $('#gallery a:first-child').trigger('click'); }); }); </script> It working...but not show thumb image !!! |
Since I am using an icon that shows on hover to open photobox and the image is not a child of that link, how might one use the 'thumb' option to set this type of path? I have tried thumb: ' .item > .effeckt-caption' but I'm unsuccessful! Here is the html layout of a thumbnail inside #gallery. The a.photobox link is for the lightbox and the other is for an info modal. Is this possible?
The text was updated successfully, but these errors were encountered: