kdeloach / react-lineto

Draw a line between two elements in React
MIT License
234 stars 63 forks source link

z-index with CSS/3D transform #26

Open truenorthcreative opened 5 years ago

truenorthcreative commented 5 years ago

The z-index works great with flat HTML, but if something like this: transform: rotateX(60deg) rotateZ(-45deg) scale(1.2); is applied, the z-index seems to not work. Not sure if this is an issue or if there's a recommended approach.

Thanks in advance.

Mathieu-DA commented 5 years ago

I am experiencing the same issue as what truenorthcreative describes. Thanks !

sam-hieken commented 4 months ago

Same issue when using transform. Appears it isn't specific to this library:

https://stackoverflow.com/questions/20851452/z-index-is-canceled-by-setting-transformrotate