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 close button placed in invalid html?
Magnific Popup - Google Maps Embed API must be used in an iframe
Magnific Popup Plugin Not Showing when Previewed in Browser
Magnific Popup Wordpress
Magnific vs PhotoSwipe
How to adjust video size magnific popup
$.magnificPopup.open() callbacks is not working
How do i setup magnific-popup
magnific-popup - re-initiate on ajax content
Magnific-popup cancels all requests on open
Magnific Popup fails to work with multiple galleries on a page
magnific-popup open in parent when calling from iframe
Magnific popup iframe closeOnBgClick does not work
Magnific Popup Text Links
Magnific popup - undefined is not a function when parsing markup
Adding onclose method in magnificPopup (that autoloads on pageload)

Categories

HOME
openmp
amazon-ec2
urbancode
single-sign-on
plot
relative-path
at-command
sqlite-net-extensions
analysis
leon
v8
ebean
serverspec
dacpac
kibana-4
metatrader4
spring-kafka
imacros
event-handling
clearcase-ucm
progressive-web-apps
highlight.js
facebook-page
oracle-coherence
normalizr
interop
django-cms
visual-composer
xlsxwriter
cx-freeze
facebook-instant-articles
google-search-api
microsoft-sync-framework
url-scheme
fgetcsv
rst2pdf
maxmind
log4js-node
webkitspeechrecognition
vision
objectanimator
sql-server-2012-express
frame
titanium-mobile
scorm2004
mapbox-gl
swift3.0.2
android-browser
impersonation
jna
cookiecutter-django
tasker
node-gyp
eigenvalue
http-redirect
flashair
revapi
boost-multi-index
gabor-filter
elgg
tactic
directory-structure
google-perftools
qtwebview
iso8601
redundancy
query-performance
parallel-data-warehouse
radtreelist
file-writing
energy
freelancer.com-api
lemon
sdhc
comobject
atk4
citrus-pay
pundit
remobjects
jsonpickle
tablelayout
cdt
nsbutton
gulp-less
websocket4net
eol
dml
navigationservice
reactfx
message-driven-bean
cloud-connect
jsctypes
apc
dbconnection
spring-validator
cassini-dev
funscript
automount
assembly-loading
qt-jambi
pydot
celltable
yslow
digest-authentication
paster
infrastructure
xsdobjectgen
nsviewanimation
uimenucontroller
sustainable-pace
django-notification
windows-live-messenger

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