Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
zoomwall.js
Advanced tools
A content-focused photo gallery using a horizontal masonry layout that scales up in lightbox mode.
zoomwall.js is a content-focused photo gallery using a horizontal masonry layout that scales up in lightbox mode.
Visit ericleong.github.io/zoomwall.js for a demo.
For those using npm
$ npm install zoomwall.js
First, add a reference to zoomwall.css
in your HTML file, like this:
<link rel="stylesheet" type="text/css" href="zoomwall.css" />
Add the zoomwall
class to the container element.
To have the browser determine when to load a high resolution image, use responsive images.
<div id="gallery" class="zoomwall">
<img
srcset="01_lowres.jpg 200w, 01_highres.jpg 800w"
sizes="(max-width: 1200px) 200px, 800px"
src="01_lowres.jpg"
/>
<img
srcset="02_lowres.jpg 200w, 02_highres.jpg 800w"
sizes="(max-width: 1200px) 200px, 800px"
src="02_lowres.jpg"
/>
</div>
Include high resolution photos using the data-highres
attribute of each <img>
tag.
<div id="gallery" class="zoomwall">
<img src="01_lowres.jpg" data-highres="01_highres.jpg" />
<img src="02_lowres.jpg" data-highres="02_highres.jpg" />
</div>
See documentation. Remember to import the module.
import * as zoomwall from "zoomwall.js";
Run zoomwall.create()
on the container element (#gallery
in this example), after they have loaded.
window.onload = function () {
zoomwall.create(document.getElementById("gallery"));
};
Enable support for paging through photos with the left and right arrow keys by setting the second argument to true
, like this: zoomwall.create(<element>, true)
.
FAQs
A content-focused photo gallery using a horizontal masonry layout that scales up in lightbox mode.
The npm package zoomwall.js receives a total of 276 weekly downloads. As such, zoomwall.js popularity was classified as not popular.
We found that zoomwall.js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.