This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Eric Eisher
Posted Nov 16 - Read on Facebook

QQ: Why does the Z index seem to displace a Layer's X, Y, and Scale properties?
As an example:
If LayerA = x:0, y:0, z:0 and LayerB = x:0, y:0, z:100... LayerB will be larger and in a different position than Layer A.


Patrick McLean

does anyone have an idea of how to prevent the 3D displacement of a layer while still using z? if not, is there a way to predict the displacement?


myLayer.z = -100

will scale down X%?

Jonas Treub

The simplest solution is to disable perspective.
Screen.perspective = 0

Kees Plattel

Cause it's the Z coordinate (depth). Not Z-index (CSS thingy). Those are two different things:

Marc Krenn

Hey Eric,
that's because "z" moves a layer along the z-axis through three-dimensional space, either bringing it either closer to or moving it further away from the camera/observer.

To re-order multiple layers (that are all at the default z = 0) just use 'index'. The higher a layer's index, the more "on top" it is.

Eric Eisher

Awesome. Thanks.

Read the entire post on Facebook