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

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”
How to give a fixed size to image in magnific-popup pluggin
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

Categories

HOME
bluetooth
server
google-api-php-client
hashmap
spagobi
google-docs
microservices
v8
alpha
podio
bs4
append
synchronization
here-api
floating-action-button
row
windows-server-2012
quartz-scheduler
ef-migrations
connection-string
alpine
immutable.js
orleans
sox
chromium-embedded
p-value
h2db
assistant
elasticsearch-net
replaceall
compatibility
windowbuilder
newline
frame
airconsole
google-qpx-express-api
uiswipegesturerecognizer
form-data
y86
hockeyapp
abstract-class
ssjs
hue
midl
heightmap
total-commander
qsslsocket
prolog-setof
fancybox-2
mu
kbuild
sqlclient
webdriverjs
minimization
chord-diagram
eventkit
firmata
home-directory
asp.net-4.5
paypal-express
dataview
suffix-tree
php-internals
ptrace
hsv
wso2cloud
lemon
service-accounts
directoryservices
python-green
clicktag
typekit
angularjs-ng-click
phalanger
device-manager
issuu
xojo
wp-query
valuechangelistener
braille
java.nio.file
geos
ms-project-server-2010
rabl
limejs
bitsharp
first-responder
tridion-worldserver
qtkit
bubble-chart
ohm
infobox
xmemcached
oncheckedchanged
remember-me
perfect-hash
firefox-5
meego
web-architecture
sef
aquaticprime
dbisam
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