nicolafranchini/VenoBox
소개
이미지, 동영상, iFrame, 인라인 콘텐츠에 사용할 수 있는 반응형 Vanilla JS 라이트박스 플러그인입니다.
창작 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalVenoBox
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
관련 프로젝트 살펴보기
불러오는 중…