
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
ngx-element-in-view
Advanced tools
> 🔍 Angular directive to detect when an element enters the viewport using `IntersectionObserver`. Add animation classes or trigger callbacks with ease.
🔍 Angular directive to detect when an element enters the viewport using
IntersectionObserver
. Add animation classes or trigger callbacks with ease.
(inView)
eventnpm install ngx-in-view
## 🧰 Parameters
| Parameter | Type | Default | Description |
|-------------------|-------------------------|----------|-----------------------------------------------------------------------------|
| `ngxElementInView` | `string` | `''` | (Optional) Space-separated CSS classes to apply when element is in view |
| `threshold` | `number` | `0.1` | (Optional) Visibility ratio (0 to 1) required to trigger the directive |
| `triggerOnce` | `boolean` | `true` | (Optional) If true, the directive triggers only once |
| `visibilityBeforeInView` | `boolean` | `true` | (Optional) If false, the element will display only once in view |
| `(inView)` | `EventEmitter<void>` | — | Emits when the element becomes visible in the viewport |
## Example
<div
[ngxElementInView]="'fade-in bounce'"
[threshold]="0.3"
[triggerOnce]="true"
>
This will animate when it appears in the viewport!
</div>
FAQs
> 🔍 Angular directive to detect when an element enters the viewport using `IntersectionObserver`. Add animation classes or trigger callbacks with ease.
The npm package ngx-element-in-view receives a total of 1 weekly downloads. As such, ngx-element-in-view popularity was classified as not popular.
We found that ngx-element-in-view 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.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.