Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use as a gallery? #155

Open
klvmedia opened this issue Oct 7, 2015 · 5 comments
Open

Use as a gallery? #155

klvmedia opened this issue Oct 7, 2015 · 5 comments
Assignees
Labels
Milestone

Comments

@klvmedia
Copy link

klvmedia commented Oct 7, 2015

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

@dixso
Copy link
Owner

dixso commented Oct 9, 2015

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

@dixso dixso self-assigned this Oct 9, 2015
@klvmedia
Copy link
Author

klvmedia commented Oct 9, 2015

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
Copy link
Author

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

@dixso dixso added this to the 4.0.0 milestone Nov 3, 2015
@dixso dixso added the feature label Nov 3, 2015
@nguyennhuttan
Copy link

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

@drmAbused
Copy link

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>

@dixso dixso modified the milestones: 4.1.0, 4.0.0 Dec 29, 2016
@dixso dixso modified the milestones: 4.2.0, 4.1.0 Jun 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants