Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
font-awesome-animation
Advanced tools
> Simple animations using some CSS3 I found on the web. > Best used on glyphicons like [FontAwesome][]
Simple animations using some CSS3 I found on the web. Best used on glyphicons like FontAwesome
Install from NPM:
npm install font-awesome-animation
Or with a CDN:
https://www.jsdelivr.com/package/npm/font-awesome-animation
Include CSS file in your index.html file:
<link rel="stylesheet" href="font-awesome-animation.min.css">
Add the desired CSS class faa-xxx
along with animated
to the icon (or any element of your DOM):
<i class="fa fa-wrench faa-wrench animated"></i>
Instead of using animated
, use the animated-hover
CSS class:
<i class="fa fa-wrench faa-wrench animated-hover"></i>
For parent hover, add the CSS class faa-parent
and animated-hover
on the parent element:
<a href="#" class="faa-parent animated-hover">
<i class="fa fa-wrench faa-wrench"></i>
</a>
You can regulate the speed of the animation by adding the CSS class faa-fast
or faa-slow
:
<i class="fa fa-wrench faa-wrench animated faa-fast"></i>
<i class="fa fa-wrench faa-wrench animated faa-slow"></i>
# install dependencies
npm install
# generate prefixes and minified CSS files
npm run build
To test in local, you can use:
css/
folder# this will create a new version and push to remote repository
npm version [<newversion> | major | minor | patch]
Then go to the release page and manually create a new release. There is an automatic Github action that publishes automatically to NPM repository.
FAQs
> Simple animations using some CSS3 I found on the web. > Best used on glyphicons like [FontAwesome][]
The npm package font-awesome-animation receives a total of 3,622 weekly downloads. As such, font-awesome-animation popularity was classified as popular.
We found that font-awesome-animation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.