Don
5월 1, 2022, 11:27오전
1
Hello
This theme component is modify the magnific popup (lightbox/gallery) to make it more user friendly especially on mobile.
This component will make a lot of changes on the default magnific popup.
More modern design
Fullscreen button (shortcut F key)
Show/hide title button
Touch swipe gestures
swipe right - previous image
swipe left - next image
swipe down - close lightbox
Theme translations to change the buttons title.
zoom_in_button_title: "Zoom In"
zoom_out_button_title: "Zoom Out"
close_button_title: "Close (Esc)"
fullscreen_button_title: "Fullscreen mode (F)"
toggle_title_button_title: "Toggle Info"
This new custom lightbox, inspired by New Discourse Lightbox Enabled on Meta - now disabled
Still want to use the old version?
You can with the old-custom-lightbox branch.
15개의 좋아요
Would be great if scrolling could be done by swipe left right. Besides that, great tc.
3개의 좋아요
Don
5월 2, 2022, 12:38오후
3
Thanks! Yes that would be great but unfortunately Magnific Popup doesn’t support swipe gestures.
4개의 좋아요
I have updated the theme component and the OP.
4개의 좋아요
Hello
I’ve updated this theme component
This update contains the following:
Drop jQuery
Change the theme-color to black when the lightbox opens. (e.g. the status bar will also be black as the lightbox background)
Update to FontAwesome 6 icons.
Use zoom-in and zoom-out cursors on image.
I’ve added a preview link to the OP.
5개의 좋아요
Very nice Don, any chance you could add an option to push the arrows, download button and image count to the outside of the image? On a photography site it’s not good to cover up parts of the photo, we want to see the entire photo without distractions. No worries if not, thanks!
2개의 좋아요
Thanks David, I will looking into a solution
The idea is create a new info button to show/hide the image informations such as download, original image, title and counter maybe.
1개의 좋아요
Thanks Don, I was thinking more like this:
But also move the arrows outside of the image, it would require the image being smaller to have some padding around the edges for this.
The other option would be hiding all the information until the cursor moves, not sure if that’s possible.
2개의 좋아요
I’ve got some inspiration from how it arranges with the new lightbox and I made a concept
I think something like this probably can works.
simplify buttons, change positions, smaller arrows
add fullscreen button and info button to show bottom infos
1개의 좋아요
Love it! Hope you can make it work
2개의 좋아요
Don
1월 6, 2025, 10:27오전
12
Here is the update for this theme component It’s not merged yet but you can try how it works on Theme Creator.
Changes like I mentioned in this Custom Lightbox - modern, swipe gestures, fullscreen mode and more - #9 by Don post.
Fullscreen button (you can trigger it with F key too)
Show/hide title button
Only show zoom-out icon when you zoomed in.
Hide arrows on mobile
Also added touch swipe actions to make it more comfortable to use on touchscreen devices.
swipe right - previous image
swipe left - next image
swipe down - close lightbox
Some UX tweaks
This update will also removes the settings.
2개의 좋아요
Looks nice Don! The only issue I’m seeing is when I click the prev/next arrows it closes the lightbox, if you use the keyboard arrows it does work as expected. I tried various browsers and it does the same thing.
2개의 좋아요
Don
1월 6, 2025, 2:36오후
14
Thanks, I fixed it now. Can you check it?
1개의 좋아요
Don
1월 7, 2025, 3:39오후
16
4개의 좋아요
Don
2월 4, 2025, 8:31오후
17
Hello
I merged a missing feature to touch devices: FEATURE: Change image click behaviour to toggle zoom on touchscreen · VaperinaDEV/discourse-custom-lightbox@7d588e2 · GitHub
The image navigation is working with swipe gestures so now we can use the image click to toggle zoom in/out.
2개의 좋아요
Don
5월 14, 2025, 7:16오전
18
안녕하세요
새로운 업데이트가 나왔습니다!
이번 업데이트에는 여러 가지 디자인 개선 사항이 포함되어 있습니다:
라이트박스 주변의 패딩 제거
작은 이미지도 이제 확대할 수 있음
투명 검은색 배경의 새로운 버튼 디자인으로, 밝은 이미지 위에서도 버튼이 잘 보이도록 개선 등
데스크톱 환경 개선:
데스크톱에서 확대된 이미지의 스크롤링, 특히 가로 스크롤링이 매우 불편하고 사용자 친화적이지 않았습니다.
이번 업데이트에서는 커서를 따라가는 스크롤링 메커니즘을 도입하여 사용 경험을 향상시켰습니다.
main ← VaperinaDEV-patch-1
merged 07:16AM - 14 May 25 UTC
2개의 좋아요