Security News
UK Officials Consider Banning Ransomware Payments from Public Entities
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
microlite is an über-small (3.6kb) lightbox that leaves a microscopic footprint. It was originally built by @danklammer. I'll make sure this repo (for packaging) maintains feature parity with that original repo.
microlite is a JavaScript lightbox with zero dependencies. It has no extras, no icons, no options and no bloat, but looks nice and is easy to use. If you want special behavior, extra options or flexible features, you'll need to consider another lightbox library (or fork this one and edit it yourself!).
microlite only modifies and animates composite (transform and opacity) CSS properties, giving you buttery smooth 60 FPS
transitions. And it uses CSS multiple backgrounds to load in the high-res version on top of the low-res, making the
experience fast and seamless. Plus, including it in your app is as easy as import
ing and setting an onclick={}
.
NPM:
npm install microlite --save
Other package managers:
Coming soon
React:
Using microlite is easy: just add the microlite function to the onclick
event on an <a>
tag, with the thumbnail
inside it, like this:
/* Import microlite */
import microLite from 'microlite';
class YourLightboxImage extends React.Component {
render() {
return (
<a href='[full-image.jpg]' onClick={(e) => microLite(e)}>
<img src='[thumbnail-image.jpg]' />
</a>
);
}
}
...You can also use it without Babel/ES6 syntax:
return (
<a href='[full-image.jpg]' onClick={function(e) { microLite(e) }}>
<img src='[thumbnail-image.jpg]' />
</a>
);
See this example for reference
Other platforms:
Coming soon
FAQs
The uber-small JavaScript lightbox
The npm package microlite receives a total of 5 weekly downloads. As such, microlite popularity was classified as not popular.
We found that microlite 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
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.