
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
glitch-effect
Advanced tools
A lightweight and customizable glitch visual effect for images using pure JavaScript.
A lightweight and customizable glitch visual effect for images using pure JavaScript — no dependencies, no canvas, no WebGL. Perfect for adding modern, reactive visual noise and RGB distortion to any container.
You can install via npm:
npm install glitch-effect
Or use it directly in the browser with a module bundler or script tag.
<div id="my-container" style="width: 600px; height: 400px;"></div>
import GlitchEffect from 'glitch-effect';
const container = document.getElementById('my-container');
const glitch = new GlitchEffect(container, 'path/to/image.jpg', {
intensity: 1.5,
noise: true
});
Option | Type | Default | Description |
---|---|---|---|
intensity | Number | 1 | How strong the RGB shift should be |
noise | Boolean | true | Whether to add pixel noise distortion |
This class does not yet include a destroy()
method, so for now you can clear the container manually if needed.
MIT
FAQs
A lightweight and customizable glitch visual effect for images using pure JavaScript.
The npm package glitch-effect receives a total of 0 weekly downloads. As such, glitch-effect popularity was classified as not popular.
We found that glitch-effect demonstrated a healthy version release cadence and project activity because the last version was released less than 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’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.