Skip to content

michvh-dev/scroll-behavior

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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',
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published