custombox icon indicating copy to clipboard operation
custombox copied to clipboard

Use as a gallery?

Open klvmedia opened this issue 9 years ago • 5 comments

Hi there,

I'm using the modal on a website at the moment to target a div with an ID which works great.

But I'd now like to use the modal with a gallery, so the anchor triggers the modal loading an image rather than a single div with an ID.

I can't seem to figure this out, any advice would be great!

Thanks

klvmedia avatar Oct 07 '15 15:10 klvmedia

Hi, I'm not sure what do you want to do. Could you put your code in jsfiddle.net?

dixso avatar Oct 09 '15 05:10 dixso

Hi Julio,

Sorry it didn't make much sense;

http://jsfiddle.net/dsjrosry/

I want to be able to open the image in the anchor.

Thanks

klvmedia avatar Oct 09 '15 08:10 klvmedia

Hi there,

Just wondered if you had an answer to this?

I really like your plugin with the added effects, I'd like to open images like so http://dimsemenov.com/plugins/magnific-popup/

Thanks

klvmedia avatar Oct 19 '15 18:10 klvmedia

You need a modal which contains an image (full size with modal) :)

nguyennhuttan avatar Dec 23 '15 11:12 nguyennhuttan

I think I know what you mean... try this, it worked for me:

<a class="gallery-item" href="#cossie">
    <img class="example-image"src="images/contentpics/cossie_small.png" alt=""></img>
</a>

<div id="cossie" class="lightboxIMG">
    <button type="button" class="close" onclick="Custombox.close();">
        <span>&times;</span>
    </button>
    <h1 class="title">Ford Escort RS Cosworth</h1>
    <div class="imageBox">
        <img src="images/contentpics/cossie_big.png">
    </div>
</div>

drmAbused avatar Apr 01 '16 15:04 drmAbused