Skip to content

Gzip compressed to just 2K, small and superb raw JavaScript lightbox plugin

License

Notifications You must be signed in to change notification settings

Tokinx/ViewImage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ViewImage.js

Gzip后仅 2kb,小巧卓越的原生JavaScript灯箱插件

获取

你可以直接访问ViewImage的 GitHub 来获取最新版插件,当然你也可以通过下面的链接下载ViewImage:

view-image.js or view-image.min.js

引用

<script src="//tokinx.github.io/ViewImage/view-image.min.js"></script>

启用

我们为您提供了非常简便的初始化方法,方便您对程序进行一些个性化设置并正确启用

<script>
    window.ViewImage && ViewImage.init('.content img');
</script>

使用 view-image 属性控制灯箱范围

使用 no-view 属性排除一些图片

独立使用

<script>
    ViewImage.display([图片URL数组], '当前展示的图片URL')
</script>

详细文档请阅读:https://tokinx.github.io/ViewImage

About

Gzip compressed to just 2K, small and superb raw JavaScript lightbox plugin

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published