🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

A mobile-first image viewer that displays your image in a fullscreen sliding panel with the ability to navigate between images via keyboard arrows or touch swipe events.

gallery-lightbox image-viewer

Documentation

h5-preview-image

手机端基于jQuery|Zepto的图片预览插件,源自amazeui的图片预览

用法

就是jQuery|Zepto插件的用法了

$(selector).preview({ 	shareBtn: false, //默认值true     showDirection: true, //是否显示左右翻页箭头;默认值false     target: 'img', //预览的图片路径,a标签的href或者是img标签的src属性;默认值img     weChatImagePreview: true //是否微信浏览器中调用微信自带的;默认值true }); 

Demo

手机上打开|浏览器模拟器方式查看

demo


You May Also Like