
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
postcss-morphicon
Advanced tools
A postcss plugin to add special morphable icons done in pure HTML/CSS
A PostCSS plugin to add special morphable icons done in pure HTML/CSS
npm install postcss-morphicon
Use HTML like this
<div class="icon">
<span></span>
<span></span>
<span></span>
</div>
Then you can use morhicons like this in PostCSS:
.icon {
morphicon: menu;
}
.icon:hover {
morphicon: close;
}
that will produce
You can also pass-in more values to style the icons like so
.icon {
/* a comma separated list of the following values */
/*
[icon],
[icon width],
[icon height],
[icon line length],
[icon line thickness],
[icon line color],
[icon gap between lines]
*/
morhicon: menu, 50px, 50px, 40px, 3px, red, 2px;
}
There are a number of available icons morphicons can create and morph into:
Using Gulp.
var gulp = require('gulp'),
postcss = require('gulp-postcss'),
morphicon = require('postcss-morphicon');
gulp.task('css', function() {
gulp.src('path/to/dev/css').
.pipe(postcss({
morphicon
}))
.pipe(gulp.dest('path/to/build/css'));
});
// rest of the gulp file
FAQs
A postcss plugin to add special morphable icons done in pure HTML/CSS
The npm package postcss-morphicon receives a total of 2 weekly downloads. As such, postcss-morphicon popularity was classified as not popular.
We found that postcss-morphicon 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.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.