Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
just-lightbox
Advanced tools
Readme
Simple, lightweight Angular image lightbox library with gestures support & no dependencies
Import module:
import {JustLightboxModule} from 'just-lightbox';
@NgModule({
imports: [JustLightboxModule.forRoot()]
})
Basic usage. Lightbox opens src image
<img src="path-to-full-image" jLightbox />
Different thumb and full images
<img src="path-to-thumbnail" jLightbox="path-to-full-image" />
It works with a hyperlinks
<a href="path-to-full-image" jLightbox>
<img src="path-to-thumbnail" />
</a>
JustLightboxModule.forRoot({
// Image paddings in px
containerOffset: {
vertical: 20, // Default: 0
horizontal: 30, // Default: 0
},
gesturesEnabled: true, // Pinch zoom & pan gestures. Default: true
wheelEnabled: true, // Wheel/trackpad zoom & pan. Default: false
wheelSensitivity: {
zoom: 10, // Default: 10
pan: 5, // Default: 5
}
});
Lightbox uses css variables
--j-lightbox__z-index: 10000000;
--j-lightbox__overlay__background-color: rgba(0, 0, 0, 0.9);
--j-lightbox__loader__color--primary: rgba(255, 255, 255, 1);
--j-lightbox__loader__color--secondary: rgba(255, 255, 255, 0.2);
--j-lightbox__loader__animation-duration: 1.1s;
--j-lightbox__overlay__cursor: zoom-out;
FAQs
Simple, lightweight Angular image lightbox library with gestures support & no dependencies
The npm package just-lightbox receives a total of 51 weekly downloads. As such, just-lightbox popularity was classified as not popular.
We found that just-lightbox 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.