magnific-popup


magnific popup group do not working


I'm using the following tool for my gallery and I've created the following HTML code:
<div class="galerie">
<div><a class="popup" href="path-to-large-image"><img src="path-to-thumb"><p>legend</p></a></div>
<div><a class="popup" href="path-to-large-image"><img src="path-to-thumb"><p>legend</p></a></div>
<div><a class="popup" href="path-to-large-image"><img src="path-to-thumb"><p>legend</p></a></div>
</div>
Now I'd like to group these elements into one gallery. I've tried with this JavaScript code:
$('.popup').magnificPopup({
delegate: 'a',
type: 'image'
});
Unfortunately this doesn't work. Can anyone help?
Try
$('.galerie').magnificPopup({
delegate: 'a',
type: 'image'
});
You should call the all gallery not a single image.
If anyone wants to know how to set up groups in magnific popup you need to
use the 'gallery' option:
$('.images').magnificPopup({
type: 'image',
gallery{
enabled: true
}
});
Source: http://dimsemenov.com/plugins/magnific-popup/documentation.html#gallery

Related Links

Magnific Popup - gallery images not displaying
Magnific Popup custom arrow and number
Is it possible to pass data via the post method to magnific popup when ajax loading content?
What is the best way to test if a Magnific Popup is currently “open”
Apply callback to all instances of Magnific Popup?
Magnific Popup show background image while loading fullres image
Popup - It should load an .aspx page
Modal dialog. - Confusing
Toggle verticalFit on an open image?
Does Magnific Popup support custom events/buttons
I can't get the overflowY option to work in magnific popup
magnific popup group do not working
Magnific-popup: how to get image url from <img src=“…”>?
Styling magnific-popup arrows
magnific popup modal closes on click
Magnific popup: getting “The image could not be loaded”

Categories

HOME
openlayers
wso2
atom-editor
hook
tinymce
office365api
react-router
elm
cakephp-2.5
v8
wamp
flyway4
networkx
bs4
autotools
python-unittest
google-translate
adobe-analytics
messages
decomposition
introduction
riot.js
cloudhub
arabic
realex-payments-api
claims-based-identity
one-to-many
microsoft-sync-framework
internet-explorer-9
brunch
traffic
fgetcsv
filezilla
spring-mybatis
subdomains
tasklet
skia
r-raster
tinymce-4
qwerty
x11-forwarding
code-search-engine
webdriver-manager
avro4s
http-live-streaming
firebase-admin
acoustics
segment
btrace
outlook-2013
filepicker
react-scripts
multipeer-connectivity
hls.js
return-value
powercli
tizen-native-app
yii2-extension
colorama
nodebb
account-kit
blacklist
smart-table
cubes
angular-strap
ableton-live
measures
persist
sigabrt
hill-climbing
bluemix-app-scan
bluegiga
kendonumerictextbox
reactive-banana
retina
pundit
interrupted-exception
nsight
cisco-ios
sortedlist
web-controls
graph-api-explorer
proj4js
tween
codeigniter-url
code-access-security
phpthumb
expected-exception
marmalade
pyhdf
blending
dotnetnuke-5
html4
orchardcms-1.7
pygit2
dmoz
unc
frameset
parametric-equations
qtkit
hgsubversion
heartbeat
subgurim-maps
cinema-4d
lpeg
rescale
phonon
port-number
genealogy
caching-application-block

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App