magnific-popup


How to generate a (magnific popup)-gallery without a-tags


This is how the mark up looks like:
<div class="outer">
<div class="container single sample00 odd">
<img src="projects/sample00.jpg" alt="sample00.jpg" class="">
</div>
<div class="container single sample01 even">
<img src="projects/sample01.jpg" alt="sample01.jpg" class="">
</div>
<div class="container single sample02 odd">
<img src="projects/sample02.jpg" alt="sample02.jpg" class="">
</div>
</div>
and that is what I thought would work:
$('.outer').magnificPopup({
delegate: '.single',
type: 'image',
gallery: { enabled: true, }
});
I did a little trick by wrapping the images with a-tags and it work but it seems a bit clumsy to me.
Thanks.

Related Links

magnific popup Inline Lightbox Gallery how to specify item in array from html link
how to make browser back close magnific-popup
Simple Magnific Popup Gallery not working
Magnific Popup onload calling a url
callbacks not firing when opening a magnific popup from another one
Magnific Popup - taller mfp-bottom-bar causes max image height issue
How to generate a (magnific popup)-gallery without a-tags
Add data to items in Magnific Popup
How to set the divs to make Magnific Popup animations work
how to display map in mobile devices using magnific popup?
Magnific Popup - Counter in Videogallery
how to manually open and close the popup using Magnific-Popup
How to customize arrows and close button?
no closing “X” with inline content
How to prevent close
Magnific-Popup Loading iframe from non-video players URL

Categories

HOME
multithreading
variables
clips
magnific-popup
activiti
pycharm
path-finding
webstorm
google-oauth
webpack-2
izpack
quicklook
visual-studio-cordova
flask-wtforms
zebra-printers
percona
serverless-framework
tostring
google-static-maps
normalizr
excel-vba-mac
dbext
visjs
trading
crosstab
h2db
url-scheme
fgetcsv
replaceall
vision
google-cloud-nl
semantic-versioning
oracle-fusion-middleware
siesta-swift
calibre
stringtemplate
subset-sum
google-api-nodejs-client
hexo
fusionpbx
restlet
web-mining
webdriver-manager
greenrobot-eventbus
pdf-reactor
react-scripts
prolog-setof
jquery-nestable
ionicons
darcs
iso8601
color-profile
redundancy
mediaelement
quartz-composer
messenger
visual-c++-2008
setuptools
color-picker
slicknav
lttng
goose
intel-fortran
jmeter-maven-plugin
spidermonkey
kcachegrind
emailrelay
method-parameters
operation
sorl-thumbnail
operator-precedence
gwidgets
codeigniter-routing
device-manager
onactivityresult
responsive-slides
heisenbug
tld
reactfx
balanced-payments
message-driven-bean
html5-notifications
xsockets.net
ms-project-server-2010
.aspxauth
inbox
google-cloud-save
html4
http-unit
trusted
mt
rdoc
appconkit
bubble-chart
punbb
custom-backend
mercurial-server
qt-jambi
krl
imac
datareader
web-application-design
forums
bespin
multi-tier
photoshop-cs4
exchange-server-2003
sector
windows-live-messenger

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App