
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
This is a micro animation library based on anime.js to achieve smooth block reveal effects and has a simple API

Documentation is work in progress
A lightweight animation plugin based on animejs for revealing effects animation with simple API that works in almost every major browser. It works with the text, images or any UI element.
npm i revealfx
<script src = "anime.min.js"></script>
<script src = "dist/revealFx.js"></script>
import revealFx;
var element1 = document.querySelector('#id1');
var rev1 = new RevealFx(element1,options);
rev1.reveal(revealSettings);
Refer API section for more details on customization
| Name | Description | Default value |
|---|---|---|
isContentHidden | If true , the content of the element will be hidden until it is revealed | true |
layers | The number of layers to be shown during the animation | 1 |
revealSettings | JSON options for animations and callback functions. This can be set initially or be passed during reveal() method call | {} |
| Name | Description | Default value |
|---|---|---|
direction | Animation direction: Block can be revealed from left to right (lr) or right to left (rl) or top to bottom (tb) or bottom to top (bt) | 'lr' |
bgColors | Array of colors that can be set as background for each layer respectively | ['#111'] |
duration | Total Time taken for animation to take place | 500 |
easing | Easing function for animation. Many more easing functions are available at anime.js | easeInOutQuint |
coverArea | percentage-based value representing how much of the area should be left covered | 0 |
delay | staggered delay in timing between the layer | 100 |
onStart | Callback, with the parameters of the element that is animated and layers that animate ,when the animation starts | Method/Function |
onHalfway | Callback, with the similar parameters as the above method , when the animation is halfway through of the animation | Method/Function |
onComplete | Callback,with the similar parameters as the above method , when the animation is completed | Method/Function |
onStart
contentEl,revealerEl onStart: function (contentEl, revealerEl) {
//contentEl is the element that is animated.
//revealerEl is an array of the layers that animate the contentEl
}
onHalfway
contentEl,revealerEl onHalfway: function (contentEl, revealerEl) {
//contentEl is the element that is animated.
//revealerEl is an array of the layers that animate the contentEl
}
onComplete
contentEl,revealerEl onComplete: function (contentEl, revealerEl) {
//contentEl is the element that is animated.
//revealerEl is an array of the layers that animate the contentEl
}
npm install
npm start
Add Images to Readme
demo snippets update
links update in the documentation
This is inspired from Mary Lou's Block Reveal Animation Tutorial. As part of a design for my portfolio website, I have used this effect for user's focus. This plugin draws major logic from the article but provides a lean,more options and self descriptive API which can be used to create sleak and superb block animation. I hope you will find this library useful
FAQs
This is a micro animation library based on anime.js to achieve smooth block reveal effects and has a simple API
The npm package revealfx receives a total of 51 weekly downloads. As such, revealfx popularity was classified as not popular.
We found that revealfx 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.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.