
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@10up/reading-position
Advanced tools
A component that reports reading position/progress on a page while scrolling.
View official documentation for this package
npm install @10up/reading-position --save
@import url("@10up/reading-position");
The styles can be imported into your existing codebase by using PostCSS imports, or by including the standalone CSS file in your project.
Create a new instance by supplying the selector to use for the reading-position and an object containing any necessary callback functions.
import ReadingPosition from '@10up/reading-position';
new ReadingPosition( '.reading-position', {
onCreate: function() {
console.log( 'onCreate callback' );
},
scrollStart: function( percentage ) {
console.log( 'scrollStart callback', percentage );
},
scrollEnd: function( percentage ) {
console.log( 'scrollEnd callback', percentage );
},
scrolling: function( percentage ) {
console.log( 'scrolling callback', percentage );
}
} );
Example implementations at: https://10up.github.io/component-reading-position/demo/index.html
Active: 10up is actively working on this, and we expect to continue work for the foreseeable future including keeping tested up to the most recent version of WordPress. Bug reports, feature requests, questions, and pull requests are welcome.
FAQs
A component that reports reading position/progress on a page while scrolling.
The npm package @10up/reading-position receives a total of 79 weekly downloads. As such, @10up/reading-position popularity was classified as not popular.
We found that @10up/reading-position demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.