📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP

auto-scroll-page

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auto-scroll-page

A library to auto scroll your page

0.0.6
latest
67

Supply Chain Security

100

Vulnerability

97

Quality

76

Maintenance

100

License

Version published
Weekly downloads
11
120%
Maintainers
1
Weekly downloads
 
Created


Markdownify
auto-scroll-page

Awesome Badge Star Badge Star Badge Star Badge

install

npm install auto-scroll-page

use

import React from "react";
import Scroll from "auto-scroll-page";
import Page from "./Components/index";

function App() {
  return (
    <div className="App">
      <Scroll size={10} speed={2} autoSpeed={4}>
        <Page />
      </Scroll>
    </div>
  );
}
export default App;

Size  •  Speed  •  AutoSpeed


* I hope this photo gives you an idea of what `"size" (size = {10})` means.
* Auto scroll page (auto-scroll-page) will run only if the mouse pointer comes inside the size area.
- The size area can be minimum 1 and maximum 50.
* Speed `"speed" (speed = {2})` ​​means the page scroll speed will increase only when the mouse moves within the size area.
- Speed ​​can be minimum 2 and maximum 10000.
* Auto speed `"autoSpeed" (autoSpeed={4})` means how fast the page will scroll when the mouse is inside the size area. And even if the pointer is inside the size area and not moving, the page will scroll.
- Autospeed can be minimum 2 and maximum 1000.

Size

If size 10, speed 2 and autospeed 4


Speed

If size 40, speed 10 and autospeed 4


Auto-Speed

If size 10, speed 2 and autospeed 10



If size 40, speed 2 and autospeed 7

Profile

SK - Web version of Auto scroll page

    Share on LinkedIn    Share on LinkedIn       

License

ISC

FAQs

Package last updated on 19 Feb 2023

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