@michvh-dev/scroll-behavior
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

@michvh-dev: Scroll behavior

This is a component that updates the scroll behavior of the browser, now the only type is scrolling over the content Live demo here.

Table of Contents

General Information

This component gives you a new scroll behavior that gives a cleaner and beautifull scroll behavior

  • It supports the mobile velocity autoscroll
  • It supports the keyboard events

Installation

npm

npm i @michvh-dev/scroll-behavior -S

yarn

yarn add @michvh-dev//scroll-behavior

Usage

import ScrollBehavior from '@michvh-dev//scroll-behavior';

const elements= document.querySelectorAll('.section');
new ScrollBehavior({
    element: elements,
});
// or 
new ScrollBehavior({
    elementSelector: '.section',
});

Readme

Keywords

none

Package Sidebar

Install

npm i @michvh-dev/scroll-behavior

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

8.7 kB

Total Files

10

Last publish

Collaborators

  • michvh