Image pop-up gallery

3

I have this in an HTML file:

And I wanted a picture slide, like a gallery, pop-up when you clicked on one of the images. Something like this link , does anyone know how to do it?

    
asked by anonymous 27.11.2015 / 12:28

2 answers

3

If you want what is being used on this site is FancyBox a plugin in JQuery . In this link you have all the instructions of how to use and the files to download. link

    
27.11.2015 / 12:38
3

Using Shadowbox JS, in addition to being extremely lightweight it is extremely easy to implement: link

<!-- insere os arquivos do shadowbox -->
<link href='source/shadowbox.css' rel='stylesheet' type='text/css'/>
<script src='source/shadowbox.js' type='text/javascript'/>

<!-- inicializa o shadowbox -->      
<script type='text/javascript'>Shadowbox.init();</script>

Using in your images

<a href="imagem_grande.jpg" rel="shadowbox">
    <img src="imagem_pequena.jpg">
</a>
    
27.11.2015 / 12:35