I'd like to display 1 or more content details in a featherlight gallery, so users can swipe or click from page to page, and then close to return to their previous tasks. The content might look something like this:
<div id="ContentDetails">
<div class="ach">
<h3>Title 1</h3>
<p>Content Item 1</p>
</div>
<div class="ach">
<h3>Title 2</h3>
<p>Content Item 2</p>
</div>
<div class="ach">
<h3>Title 3</h3>
<p>Content Item 3</p>
</div>
</div>
JSFiddle: https://jsfiddle.net/6n0a55qn/46/
I can get the single $.featherlight($("div.ach"));
call to work, but it places all the text in the same lightbox -- I'd like each content item in a separate "slide." Unfortunately, the same call to $.featherlightGallery($("div.ach"));
doesn't appear to do anything. Some questions from a really new user:
- Can
featherlightGallery()
be called manually likefeatherlight()
? - If so, what's the syntax that would separate each of those blocks into their own "slide"?