Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

scroll-to-bottomjs

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scroll-to-bottomjs

A small promise aware helper function to scroll a webpage to the bottom.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
14K
increased by8.5%
Maintainers
1
Weekly downloads
 
Created
Source

Scroll To Bottom

A small promise aware helper function to scroll a webpage to the bottom. This can be helpful for triggering lazy loading images (or anything using scroll based observation).

Usage

Once the function is included in the browser, you can use scrollToBottom with the defaults, or pass options:

scrollToBottom();
scrollToBottom({ frequency: 50, timing: 5 });

Options

  • options.frequency (default: 100) - How many scroll increments
  • options.timing (default: 8) - The amout of ms to pause between scroll increments

FAQs

Package last updated on 26 Nov 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc