Hi, I was hoping I can get some help. I've been searching and searching for a lightbox that works with SrcSet so I can display different images based on viewport width. Most to which I have found; don't support SrcSet but presentation wise, are exactly what I want, somewhat a conundrum.
Siberian
13
Junior Poster
Recommended Answers
Jump to PostIf your thumbnail images are on small screen as width as the width of the screen/device then you could, or even should, disable the lightbox functionality on small screens.
http://bradfrost.com/blog/post/conditional-lightbox/But if not, …
Jump to PostThe link to that article explains it really well what I meant. Did you read it?
That pen is not mine, but you can change the view to full page, so you could test it on a small screen. http://codepen.io/dudleystorey/full/LEBjyL/
If your …
Jump to Postby the way... with thumbnail images, I meant the mages where user clicks on to open the bigger version of it in the lightbox.
Jump to PostDo you mean that codepen won't display correctly or the lightbox demo itself?
I've opened the demo in Safari on my iPhone and the creator of that lightbox demo has also disabled the lightbox for small screens, The thumbnail/small image is as width of the width of my screen and …
Jump to PostI had no issues opening the fullpage on my iPhone5.
It wouldn't make sense if your thumbnail image would've the same dimensions as the image that opens in the lightbox on small screen, but since your thumbnail image is a (half) crop of the actual sized image, then you can …
All 20 Replies
gentlemedia
803
Master Poster
Siberian
13
Junior Poster
gentlemedia
803
Master Poster
gentlemedia
803
Master Poster
Siberian
13
Junior Poster
Siberian
13
Junior Poster
gentlemedia
803
Master Poster
Siberian
13
Junior Poster
gentlemedia
803
Master Poster
Siberian
13
Junior Poster
gentlemedia
803
Master Poster
Siberian
13
Junior Poster
gentlemedia
803
Master Poster
Siberian
13
Junior Poster
Siberian
13
Junior Poster
gentlemedia
803
Master Poster
Siberian
13
Junior Poster
gentlemedia
803
Master Poster
Siberian
13
Junior Poster
Siberian
13
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.