
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
fontanimate
Advanced tools
Library for adding a drawing animation to Font Awesome 5 icons.
Several quick start options are available:
git clone https://github.com/innovato/fontanimate.git
npm install fontanimate
yarn add fontanimate
Add the dependencies to your HTML:
<script src="https://use.fontawesome.com/releases/v5.0.8/js/all.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
Add some Font Awesome Icons (note the font-animate
class):
<i class="fab fa-500px font-animate"></i>
<i class="fab fa-apple font-animate"></i>
Initiate Font Animate:
$(document).ready(function () {
$('.font-animate').fontAnimate();
});
Done!
The plugin options are divided in two parts:
Name | Type | Description |
---|---|---|
stroke | string | Stroke color. E.g. red , #000 , #00FF00 , [Default: currentColor (inherits color)] |
fill | string | Fill color. E.g. red , #000 , #00FF00 , [Default: transparent ] |
strokeWidth | integer | Stroke width. [Default: 1 ] |
callback | function | Callback at the end of the animation. [Default: (obj) => {} ] |
Refer to Vivus for animation specific options. All Vivus options are available for use in this library.
$(document).ready(function () {
$('.font-animate').fontAnimate({
stroke: 'red',
duration: 500 // Vivus specific animation option
});
});
It is possible to override the initial options through HTML attributes:
<i data-stroke="red" data-stroke-width="5" data-fill="green" data-duration="1000" class="fab fa-apple font-animate"></i>
A big thanks to:
Code and documentation copyright 2018 Innovato. Code released under the MIT License.
FAQs
Library for adding a drawing animation to Font Awesome 5 icons
The npm package fontanimate receives a total of 0 weekly downloads. As such, fontanimate popularity was classified as not popular.
We found that fontanimate 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.