nicolafranchini/VenoBox
nicolafranchini/VenoBox has 716 GitHub stars and 162 forks. GitHot measured 0 stars in 24 hours, -1 in 7 days, and 0 in 15 days. Last checked 2026-11-24 21:44 UTC. Last push 2026-10-22.
实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
关于
适用于图片、视频、iFrame 和内联内容的响应式 Vanilla JS 灯箱插件。
创作与媒体README.md
原文VenoBox
Responsive modal window javaScript plugin, touch swipe gallery
Just another responsive lightbox plugin, suitable for images, inline contents, iFrames, videos.
The big difference compared to many others plugins is that VenoBox calculates the max width of the image displayed and preserves its height if is taller than the window (so in small devices you can scroll down the content, avoiding vertical microscopic resized images).
Demo: https://veno.es/venobox/
Quick start
Install
This package can be installed with:
JavaScript Setup
Import the module and initialize.
import VenoBox from 'venobox';
CSS Setup
Include the stylesheet separately in your CSS entry point or HTML head.
via CSS (@import):
@import "venobox/dist/venobox.min.css";
or via HTML (<link>):
<link rel="stylesheet" href="node\_modules/venobox/dist/venobox.min.css">
Static HTML
Download the latest release or get the sources from jsDelivr
Put the required stylesheet into your <head> to load our CSS:
<link rel="stylesheet" href="venobox/dist/venobox.min.css" />
Include the script near the end of your pages, right before the closing </body> tag:
<script src="venobox/dist/venobox.min.js"></script>
Usage
Insert one or more links with a custom class
<a class="venobox" href="image01-big.jpg"><img src="image01-small.jpg" alt="image alt"/></a>
Initialize the plugin and your VenoBox is ready for all the selected links.
new VenoBox({
selector: '.venobox'
});
Documentation
The full documentation is available at https://veno.es/venobox/
License: released under the MIT License
探索相关项目
加载中…