tokinx / viewimage Goto Github PK
View Code? Open in Web Editor NEWGzip compressed to just 2K, small and superb raw JavaScript lightbox plugin
Home Page: https://tokinx.github.io/ViewImage
License: MIT License
Gzip compressed to just 2K, small and superb raw JavaScript lightbox plugin
Home Page: https://tokinx.github.io/ViewImage
License: MIT License
const images = [...contain.querySelectorAll(_class)].map(_ => _.href || _.dataset['zoomSrc'] || _.src);
this.display(images, el.href || el.dataset['zoomSrc'] || el.src);
html 内添加 data-zoom-src
即可
呜呜呜,用这个插件好多年了,很喜欢,但是但是!!就是有一点!
点开灯箱时,查看图片,没办法左右(拖拽)滑动切换图片,只能点下面的箭头,这里一直很难受!!!!!!!!!
请务必加上这点小功能!!!!
爱你!!!!
问题:缩小一张已经放大的图片时,其他图片会置于顶层。
另外感觉点击任意位置均可缩小图片比较符合习惯~
Great little piece of code. thanks! but...
This script does not work on IE11 as the setTimeout is called with an arrow function.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.