[WordPress] 外掛分享: Rado’s Native Lightbox

首頁外掛目錄 › Rado's Native Lightbox
全新外掛
安裝啟用
尚無評分
12 天前
最後更新
問題解決
WordPress 5.9+ PHP 7.4+ v1.0.0 上架:2026-03-03

內容簡介

Rado's Native Lightbox 可將 WordPress 內建圖庫自動轉換為全螢幕燈箱輪播,無需任何設定或短代碼。採用瀏覽器原生捲動吸附技術,總檔案大小僅約 13 KB,輕巧快速且完全無障礙。

【主要功能】
• 啟用即生效,零設定自動轉換所有圖庫為燈箱輪播
• 總大小僅約 13 KB,不依賴 jQuery 或外部框架
• 支援滑動、鍵盤及滑鼠滾輪導覽
• 內建無障礙支援,含鍵盤導覽與螢幕閱讀器標籤
• 自動適應訪客系統的深色模式配色
• 圖片延遲載入,搭配低解析度模糊預覽佔位圖

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Rado's Native Lightbox」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Rado’s Native Lightbox instantly upgrades every WordPress gallery into a beautiful, full-screen lightbox carousel. Just activate and go — your existing galleries are transformed automatically, no shortcodes to learn, no settings pages to configure.
Built on Native Carousel, it uses the browser’s own scroll-snapping instead of heavy animation libraries. The result is buttery-smooth swiping on phones, fluid keyboard navigation on desktops, and a total footprint of roughly 13 KB — smaller than a single thumbnail image.
Why this plugin?

Zero configuration — activate it and every gallery on your site becomes a lightbox carousel. Deactivate it and galleries revert to normal. Nothing is written to your database.
Truly lightweight — ~13 KB total (JS + CSS). No jQuery, no frameworks, no external requests. Your PageSpeed score stays intact.
Works with any theme — Twenty Twenty-Five, Astra, GeneratePress, or anything else. The plugin bundles everything it needs.
Accessible by default — full keyboard navigation, focus trapping in the lightbox, screen-reader labels on every control, and prefers-reduced-motion support.
Native scroll-snap — hardware-accelerated, 60 fps swiping powered by the browser itself, not JavaScript animation loops.
Dark mode aware — the lightbox overlay adapts to the visitor’s system color scheme automatically.

Features at a glance:

Full-screen lightbox with swipe, keyboard and mouse-wheel navigation
Compact thumbnail index strip with scrollable overflow
“Thumbnails only” toggle in both the Block Editor sidebar and Classic Editor settings
Endless (infinite loop) navigation
Lazy-loaded images with low-resolution placeholder blur while loading
Captions and alt text fully preserved
Featured-image click opens the matching gallery slide on single posts
Editor performance guard — caps image sizes in the block editor to prevent crashes with large galleries

How it works:
The plugin intercepts gallery rendering at display time and outputs Native Carousel HTML markup. Your post content is never modified — the transformation is purely visual and fully reversible.
Third-party source code
This plugin bundles minified assets from Native Carousel, an open-source carousel component (GPL-2.0-or-later).

Homepage & documentation: https://nativecarousel.com/
Source code repository: https://github.com/radogado/n-carousel

The following files in assets/ are the minified production builds:

n-carousel.min.js — carousel runtime
n-carousel-preload.min.js — image preloader
n-carousel.min.css — carousel styles

The unminified, human-readable source is available in the GitHub repository linked above. No build tools are needed to work with this plugin’s own code — gallery-lightbox.css and the admin JavaScript files are shipped unminified and readable.
This plugin is also maintained as part of the niui theme project:
https://gitlab.com/spacest/niui/-/tree/main/rados-native-lightbox

延伸相關外掛

文章
Filter
Mastodon