定制 nicolafranchini/venobox 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nicolafranchini/venobox

Composer 安装命令:

composer require nicolafranchini/venobox

包简介

Responsive JavaScript modal window plugin, touch swipe gallery

README 文档

README

venobox (latest) venobox (downloads)

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:

  • npm: npm install venobox
  • composer: composer require nicolafranchini/venobox

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

统计信息

  • 总下载量: 7.11k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 711
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 711
  • Watchers: 27
  • Forks: 170
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-03-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固