
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@omnedia/ngx-fade
Advanced tools
A simple component library to add a (directional) fade effect to your elements.
This Library is part of the NGXUI ecosystem.
View all available components at https://ngxui.com
The NgxFadeComponent
is a versatile Angular component that provides a smooth fading and sliding effect for its content as it enters or leaves the viewport. This component uses the IntersectionObserver API to detect when the component is in view and apply the defined transition effects. It's fully customizable with different transition directions, durations, and easing functions.
Viewport Detection
: Automatically fades and slides the content when it enters or leaves the viewport.Flexible Directions
: Supports transitions from different directions such as up, down, left, and right.Custom Transforms
: You can fully customize the transform property, overriding the default directional behavior.Customizable Timing
: Control the transition duration and easing function for smooth animations.Install the component via npm:
npm install @omnedia/ngx-fade
Import the NgxFadeComponent
in your module or component:
import {NgxFadeComponent} from '@omnedia/ngx-fade';
@Component({
...
imports:
[
NgxFadeComponent,
...
],
...
})
export class YourComponent {
}
Add the component to your template:
<om-fade [direction]="'up'" [transitionDuration]="'1s'" [transitionFunction]="'ease-out'">
<p>Fading content from the bottom</p>
</om-fade>
direction
(optional): The direction from which the content should slide in. Accepts "up", "down", "left", or "right". The content will fade in from this direction. If a customTransform is provided, it will override this input.transitionDuration
(optional): The duration of the transition, specified as a valid CSS duration value (e.g., "1s", "500ms"). Default is "0.5s".transitionFunction
(optional): The easing function for the transition, specified as a valid CSS transition timing function (e.g., "ease-in-out", "linear"). Default is "ease-in-out".customTransform
(optional): A custom CSS transform value to override the direction behavior. If set, this custom transform will take precedence over the direction input.animateOnlyOnce
(optional): A boolean to let the animation run only once. Default false
.If you want more control over how the element is transformed, you can use the customTransform input, which allows you to specify any CSS transform, such as rotating or scaling the element. This input overrides the direction setting.
<om-fade [customTransform]="'rotate(45deg)'" [transitionDuration]="'1s'">
<p>Custom rotated content</p>
</om-fade>
In this example, instead of sliding the content in from a direction, it will appear with a 45-degree rotation.
<om-fade [direction]="'left'" [transitionDuration]="'2s'" [transitionFunction]="'ease-in'">
<h2>Fading In from Left</h2>
</om-fade>
<om-fade [customTransform]="'scale(0.5)'" [transitionDuration]="'1.5s'">
<h2>Custom Scaling Effect</h2>
</om-fade>
Contributions are welcome! Please submit a pull request or open an issue to discuss your ideas.
This project is licensed under the MIT License.
FAQs
A simple component library to add a (directional) fade effect to your elements.
The npm package @omnedia/ngx-fade receives a total of 17 weekly downloads. As such, @omnedia/ngx-fade popularity was classified as not popular.
We found that @omnedia/ngx-fade demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.