Gathering detailed insights and metrics for postcss-smoothscroll-anchor-polyfill
Gathering detailed insights and metrics for postcss-smoothscroll-anchor-polyfill
Gathering detailed insights and metrics for postcss-smoothscroll-anchor-polyfill
Gathering detailed insights and metrics for postcss-smoothscroll-anchor-polyfill
⚙ Transform CSS for use with smoothscroll-anchor-polyfill
npm install postcss-smoothscroll-anchor-polyfill
Typescript
Module System
Node Version
NPM Version
55.9
Supply Chain
98
Quality
73.3
Maintenance
50
Vulnerability
99.3
License
JavaScript (100%)
Total Downloads
1,661
Last Day
1
Last Week
1
Last Month
11
Last Year
178
MIT License
4 Stars
55 Commits
7 Branches
6 Contributors
Updated on Mar 01, 2024
Minified
Minified + Gzipped
Latest Version
2.0.2
Package Id
postcss-smoothscroll-anchor-polyfill@2.0.2
Unpacked Size
9.12 kB
Size
3.58 kB
File Count
7
NPM Version
8.5.0
Node Version
16.14.2
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
-80%
1
Compared to previous week
Last Month
-21.4%
11
Compared to previous month
Last Year
16.3%
178
Compared to previous year
4
1
3
⚙ PostCSS plugin that updates the standard scroll-behavior
property to work with smoothscroll-anchor-polyfill
1html { 2 scroll-behavior: smooth; 3}
compiles to:
1html { 2 font-family: "scroll-behavior:smooth"; 3 scroll-behavior: smooth; 4}
or if all browsers in your browserslist support CSS Custom Properties:
1html { 2 --scroll-behavior: smooth; 3 scroll-behavior: smooth; 4}
font
and font-family
Existing font
and font-family
declarations are kept and smoothscroll-anchor-polyfill will still work:
👉🏻 Even though the original font declarations are kept, using
html { }
only forscroll-behavior
and declaring your font styles onbody { }
is prefered.
1html { 2 scroll-behavior: smooth; 3 font-family: "Helvetica Neue"; 4} 5 6/* Compiles to: */ 7 8html { 9 scroll-behavior: smooth; 10 font-family: "scroll-behavior:smooth", "Helvetica Neue"; 11}
1html { 2 scroll-behavior: smooth; 3 font: strong 1em/1.4 "Helvetica Neue"; 4} 5 6/* Compiles to: */ 7 8html { 9 scroll-behavior: smooth; 10 font: strong 1em/1.4 "Helvetica Neue"; 11 font-family: "scroll-behavior:smooth", "Helvetica Neue"; 12}
npm:
npm install postcss-smoothscroll-anchor-polyfill --save-dev
or yarn:
1yarn add --dev postcss-smoothscroll-anchor-polyfill
1postcss([ require('postcss-smoothscroll-anchor-polyfill') ])
See PostCSS docs for examples for your environment.
This PostCSS plugin is based on a fork of postcss-object-fit-images, which was built by:
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/5 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
22 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-02
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More