
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.
faded-header
Advanced tools
Change the color of an element based on how far the page has scrolled.
Intended to fade in a fixed header as a visitor scrolls down.
Will transform from any (or no) initial colors to any colors parseable by the excelent color library.
See index.html for usage example.
fadedHeader(headerSelector, {
// Default values below
transformRange: window.innerHeight, // Page window.scrollY at which should be fully transformed
backgroundColor: null, // Background color to transform to
textColor: null, // Text color to transform to
easingFunction: ratio => Math.pow(ratio, 2), // Easing function for the scrolled ratio. Number between 0 and 1 goes in and a number between 0 and 1 should come out
backgroundEasingFunction: null, // Overrides easingFunction for background if set
textEasingFunction: null // Overrides easing function for text if set
});
If neither backgroundColor
nor textColor
are passed, will just log and return without doing anything.
transformRange
, backgroundColor
, and textColor
can be arrays.
FAQs
faded-header ============
The npm package faded-header receives a total of 0 weekly downloads. As such, faded-header popularity was classified as not popular.
We found that faded-header 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
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.