Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
A light-weight, vanilla JavaScript library to help you create fancy backgrounds
Little vanilla JS library to add interactive backgrounds to your webpages - View Demo
Install it using yarn or npm
yarn add brusher
Or you may use unpkg
http://unpkg.com/brusher/dist/brusher.min.js
For the basic usage, all you need to do is create an instance of Brusher
and provide an image
import Brusher from 'brusher';
const brusher = new Brusher({
image: 'abstract.png'
});
brusher.init();
Here is the list of options that you may use
const brusher = new Brusher({
image: 'abstract.png', // Path of the image to be used as a brush
keepCleared: true, // Put the blur back after user has cleared it
stroke: 80, // Stroke size for the brush
lineStyle: 'round', // Brush style (round, square, butt)
autoBlur: false, // Brusher will use the provided image for the blurry background
autoBlurValue: 15, // Blur strength in pixels
});
brusher.init();
A note on blurry background: although brusher is capable of generating blurry background by itself. It is recommended that you blur the image yourself and apply it to the body for improved performance. Brusher relies on CSS blur if you don't provide the blurry image. And rendering performance for the pre-provided blurred image would be of-cource much less than that applied using CSS. Here is the sample CSS that you may use for the background
body {
background-size: cover;
background-position: 0 0;
background-attachment: fixed;
background-image: url(path/to/blurred/image.jpg);
}
MIT © Kamran Ahmed
FAQs
A light-weight, vanilla JavaScript library to help you create fancy backgrounds
The npm package brusher receives a total of 24 weekly downloads. As such, brusher popularity was classified as not popular.
We found that brusher 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.