Skip to content

a javascript bookmarklet that displays z-indexes in a 3d view

Notifications You must be signed in to change notification settings

Saberpeep/zExploder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

zExploder

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!

How To Use

  1. Copy the contents of bookmarklet.txt to the url field of a bookmark in your browser.
  2. Put the bookmark on your bookmarks bar.
  3. Visit (almost) any site and click the bookmark to load the tool into that page.
  4. To exit, simply reload the page

Controls:

  1. Drag mouse to rotate
  2. Scroll wheel to zoom in and out

Extras:

  • Set zExploder.DEBUG_MODE to true 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).

About

a javascript bookmarklet that displays z-indexes in a 3d view

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published