meltingice / psd.js

A Photoshop PSD file parser for NodeJS and browsers
MIT License
2.74k stars 390 forks source link

The real z-index of layers #217

Open gofurnazarov opened 3 years ago

gofurnazarov commented 3 years ago

When I copy CSS of a layer using built-in Photoshop "Copy CSS" function, it give z-index of every layer. Example:

.slider {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 1920px;
  height: 8945px;
  z-index: 688;
}

You can see at the end the layer has "688" z-index. So how can I get that "z-index" using psd.js?

Aimee-Lin commented 1 year ago

I also want to know.Have you solved this problem?