프로젝트
GitHub에서 보기
banthagroup/fslightbox
소개
An easy to use vanilla JavaScript plug-in without production dependencies for displaying images, videos, or, through custom sources, anything you want in a clean overlying box.
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -2
- in 1 month
- 업데이트 지연
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalVanilla JavaScript Fullscreen Lightbox Basic
Description
A vanilla JavaScript plug-in without production dependencies for displaying images, videos, or, through custom sources, anything you want in a clean overlying box. The project's website: https://fslightbox.com.
Installation
Through an archive downloaded from the website.
Just before the end of the <body> tag:
<script src="fslightbox.js"></script>
Or, through a package manager.
npm install fslightbox
And import it in your project's JavaScript file, for example through the Node.js "require" function:
require("fslightbox")
Basic usage
<a data-fslightbox="gallery" href="https://i.imgur.com/fsyrScY.jpg">
Open the first slide (an image)
</a>
<a
data-fslightbox="gallery"
href="https://www.youtube.com/watch?v=xshEZzpS4CQ"
>
Open the second slide (a YouTube video)
</a>
<a
data-fslightbox="gallery"
href="https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
>
Open the third slide (an HTML video)
</a>
<a data-fslightbox="gallery" href="#vimeo">
Open the fourth slide (a Vimeo video—a custom source)
</a>
<iframe
id="vimeo"
src="https://player.vimeo.com/video/22439234"
width="1920px"
height="1080px"
frameBorder="0"
allow="autoplay; fullscreen"
allowFullScreen
></iframe>
Documentation
Available at: https://fslightbox.com/javascript/documentation.
Demo
Available at: https://fslightbox.com/javascript.
Browser Compatibility
| Browser | Works? |
|---|---|
| Chrome | Yes |
| Firefox | Yes |
| Opera | Yes |
| Safari | Yes |
| Edge | Yes |
| IE 11 | Yes |
관련 프로젝트 살펴보기
불러오는 중…