Manipulate CSS z-index Property In JavaScript – zindexer.js

Category: Javascript | May 22, 2018
Author: mrfrkayvaz
Views Total: 591
Official Page: Go to website
Last Update: May 22, 2018
License: MIT

Preview:

Manipulate CSS z-index Property In JavaScript – zindexer.js

Description:

zindexer.js is a small JavaScript library used to manipulate the CSS z-index property on multiple elements.

How to use it:

Import the zindexer.js script into the document.

<script src="zindexer.js"></script>

Set the z-index property for each element.

var data = {
    '#el1': '5',
    '#el2': '4',
    '#el3': '3',
    '#el4': '2',
    '#el5': '1',
    '#el6': '0'
}

Initialize the library and done.

zindexer(data);

You Might Be Interested In:


Leave a Reply