
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.
svg-loaders
Advanced tools
All loaders may be previewed at:
http://samherbert.net/svg-loaders
NOTE: These loaders were originally built to only use SMIL animations; however, all animations have been updated with CSS animations. Since Chrome 45, the use of SMIL animations have been deprecated in Chrome browsers.
The SMIL versions are still in included in this repo, but it is recommended to use the CSS version of a loader if you're planning on using it in a web browser.
Download or bower install svg-loaders
<img src="svg-css-loaders/puff.svg" />
An icon's color can be manipulated by changing the fill
or stroke
value in the CSS block of the SVG file.
<svg xmlns="http://www.w3.org/2000/svg" width="44" height="44" viewBox="0 0 44 44">
<style type="text/css">
<![CDATA[
circle {
stroke: #fff;
stroke-width: 3;
}
]]>
</style>
[...]
Note: Not all browsers support SVG, or more specifically, animated SVGs. Check (http://caniuse.com/#feat=svg-smil) to make sure you're good to go. If not, you may want to implement a fallback.
All SVG files are fairly small in size, but you can make them even smaller by minifying with something like SVGO.
FAQs
Loading icons and small animations built with SVG and CSS.
The npm package svg-loaders receives a total of 57 weekly downloads. As such, svg-loaders popularity was classified as not popular.
We found that svg-loaders 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’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.