A javascript bookmarklet that displays z-indexes in a 3d view.
This tool displays elements that have a z-index set in a 3d representation. z-indexed elements are outlined in red and are ordered based on their z-index relative to their peers. z-indexed elements which are hidden are revealed and given a blue outline.
Also note, this tool is still in development, so expect bugs!
- Copy the contents of
bookmarklet.txt
to the url field of a bookmark in your browser. - Put the bookmark on your bookmarks bar.
- Visit (almost) any site and click the bookmark to load the tool into that page.
- To exit, simply reload the page
- Drag mouse to rotate
- Scroll wheel to zoom in and out
- Set
zExploder.DEBUG_MODE
totrue
to get more debug info in your javascript console. - Set
zExploder.LAYER_DEPTH
to a value in px for how far apart you want the layers to be displayed. - Set
zExploder.STARTING_ANGLE
to an angle in deg at which the view is rotated at init. - Set
zExploder.STARTING_ZOOM
to a value in vh representing the z translation at which the view is zoomed at init. - Set
zExploder.BASE_PERSPECTIVE
to a value in px represeting the perspective of the view at init. - Run
zExploder.init()
to refresh the tool. (you must run this for other changes to take effect).