Gathering detailed insights and metrics for scroll-to-element
Gathering detailed insights and metrics for scroll-to-element
Gathering detailed insights and metrics for scroll-to-element
Gathering detailed insights and metrics for scroll-to-element
Smooth scrolling to an element via selector or node reference
npm install scroll-to-element
Typescript
Module System
Node Version
NPM Version
98.7
Supply Chain
85.1
Quality
75.2
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
17,690,333
Last Day
3,101
Last Week
29,315
Last Month
164,328
Last Year
2,496,133
106 Stars
19 Commits
13 Forks
5 Watching
7 Branches
4 Contributors
Latest Version
2.0.3
Package Id
scroll-to-element@2.0.3
Size
7.81 kB
NPM Version
6.4.1
Node Version
10.12.0
Publised On
11 Mar 2019
Cumulative downloads
Total Downloads
Last day
-59.3%
3,101
Compared to previous day
Last week
-29.1%
29,315
Compared to previous week
Last month
-4.4%
164,328
Compared to previous month
Last year
-34%
2,496,133
Compared to previous year
1
1
Smooth scrolls to element of the specified selector or element reference with optional offset, scroll-positon, easing, and duration. Takes into account document height for elements low on the page.
scrollToElement(selector, <options>)
Add an additional offset to the final position. if > 0 then page is moved to the bottom otherwise the page is moved to the top.
Alignment of the element in the resulting viewport. Can be one of
'top'
,'middle'
or'bottom'
. Defaulting to'top'
.
Easing function defaulting to "out-circ" (view ease for more)
Animation duration defaulting to
1000
1var scrollToElement = require('scroll-to-element');
2
3scrollToElement('#id');
4
5// with options
6scrollToElement('.className', {
7 offset: 0,
8 ease: 'out-bounce',
9 duration: 1500
10});
11
12// or if you already have a reference to the element
13var elem = document.querySelector('.className');
14scrollToElement(elem, {
15 offset: 0,
16 ease: 'out-bounce',
17 duration: 1500
18});
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 3/18 approved changesets -- score normalized to 1
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
15 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-12-16
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