CSS calc() experessions

Is there a way to enter a math CSS function in Studio for a box size? e.g. calc (100% - 32px)

There isn’t, but for that particular case, would it work to add 16px left/right padding to a parent box?

@yang It doesn’t look like (maybe I’m missing something). I’m attempting to animate an accordion with variable text height (depending on slot content) within Studio.

You can use calc() function by adding an HTML attribute “style” to the element :

1 Like