1.0.1 • Published 3 years ago

@michvh-dev/fixed-overflow v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

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

3 years ago

1.0.0

3 years ago