Add variables to X and Y fields

Just like driving width and height, I want to dynamically position elements in weird ways too.

But not weird like this:


Hey @IraX,

Thanks for posting and sharing this idea!

After taking the time to think about it, I could indeed see a few situations where this could be quite useful and I have noted it for our Product team as a feature request!

At this point, I can’t guarantee this will be implemented as such or at all but I can confirm our teams will definitely take it into consideration as we’re currently focused on improving and updating these new features (variables and others) to make sure they cover all our community needs :smiley:


I am also looking to use X & Y coordinates as variables. In my situation, I would like to have overlayed elements appear at the top and bottom of a scrolling table window. Basically, when the “Y” value of the table’s content is =0, the overlay elements would be hidden. When the contents of the table is scrolled or the “Y” value then becomes less than 0, the overlay elements will then become visible.

In addition, I would also like to use this value for controlling the scrubber location.

Example Image:

Hey @mfelix, do you know why it wasn’t implemented for the beta?

I was surprised when I couldn’t add variables to the x and y values, all the other layout properties have this ability. I wanted to use them to control drawing outside the bounding box changing between modes.

Same here - I’d like to apply a variable to the X/Y fields, for an absolutely positioned element in an auto layout frame.

Specifically, this can be useful for positioning tooltips above content with the same offset - set via a variable.

This is a VERY common use case — developers can easy change the transform x-position in CSS and this is the exact same thing.

A typical use case would be “When this thing is tapped/clicked, that thing moves 40px to the left”…this absolutely needs to be standard :wink:

1 Like

Any updates? I’d also like to use this feature.