
Product
Socket Now Available on Google Cloud Marketplace
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
An even more lightweight version of film.js, a film like animation, that works for image.
A small, high-performance, and minimal-dependence library for creating image infinite-scrolling animations.
Compared to film.js, gallery.js:
Check out the demo here: https://f15gdsy.github.io/gallery.js/
If you are using npm:
npm install gallery-js --save
If you are using yarn:
yarn add gallery-js
First, you need to setup the following DOM structure:
<div class="gallery"></div>
Then create a new gallery object
const images = [
'images/pic_1.jpg',
'images/pic_2.jpg',
'images/pic_3.jpg',
'images/pic_4.jpg'
]
const opts = {
direction: 'vertical'
// ... other options
}
const gallery = new Gallery('.gallery', images, opts)
// or
const gallery = new Gallery(el, images, opts)
That's it!
Starts the animation.
Stops the animation.
Re-initialize the gallery. Will do heavy image regeneration and style recalculation. Usually not needed.
FAQs
An even more lightweight version of film.js, a film like animation, that works for image.
The npm package gallery-js receives a total of 1 weekly downloads. As such, gallery-js popularity was classified as not popular.
We found that gallery-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.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.
Research
Security News
Research uncovers Black Basta's plans to exploit package registries for ransomware delivery alongside evidence of similar attacks already targeting open source ecosystems.