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

1.0.1 • Public • Published

@michvh-dev: Fixed overflow

This is a small utilitie that gives the possibility to mask fixed elements when you scroll over different element Live demo here.

Table of Contents

General Information

This js utility helps you to seamlesly update fixed elements

Installation

npm

npm i @michvh-dev/fixed-overfloww -S

yarn

yarn add @michvh-dev/fixed-overflow

Usage

import FixedOverflow from '@michvh-dev//fixed-overfloww';

const elements= document.querySelectorAll('.header, .sidebar');
new FixedOverflow({
    element: elements,
});
// or 
new FixedOverflow({
    elementSelector: '.header, .sidebar',
});

Readme

Keywords

none

Package Sidebar

Install

npm i @michvh-dev/fixed-overflow

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

7.9 kB

Total Files

6

Last publish

Collaborators

  • michvh