1.0.2 • Published 2 years ago

@artifriends/z-index-manager v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Z-Index Manager

Finds the highest z-index value

Usage

import artifriends_z_index_manager from "browser_modules/@artifriends/z-index-manager/module.js";
const {zIndexManager} = artifriends_z_index_manager;

// get instance
const zIndexManagerInstance = new zIndexManager();

// get highest z-index value
console.log(zIndexManagerInstance.getHighestZIndex('body')); // 1

Install

Frontle

frontle install @artifriends/z-index-manager

Download files

https://github.com/Artifriends-inc/zIndexManager

API

new zIndexManager()

Creating a zIndexManager object. Single tone pattern used

const zIndexManagerInstance = new zIndexManager();

.getHighestZIndex(element)

Get the highest z-index value within the specified element

console.log(zIndexManagerInstance.getHighestZIndex('body'));

People

The original author of @artifriends/z-index-manager is MushStory

License

MIT