Features | Create a responsive layout in Cavalry.

Опубликовано: 19 Май 2026
на канале: Cavalry
13,426
246

How to use a Layout Group in Cavalry to set up Shapes that respond when a Composition's resolution changes.

The Layout Group is a Pro feature.

0:00 - Intro.
0:43 - Creating the elements.
1:47 - Adding to a Layout Group.
4:21 - Aligning the Shapes.
4:59 - Embedding Layouts.
5:17 - Setting Margins.
5:42 - Switching layout direction.
7:44 - Auto-scaling the text.
8:38 - Setting an Attribute Expression.

The syntax for a 'ternary if statement' used with the Jsmath Utility is:

condition ? true : false

The final Attribute Expression used is:

clamp (0, value-100, 700)

Layers used:

Layout Group - https://docs.cavalry.scenegroup.co/no...
Text Shape - https://docs.cavalry.scenegroup.co/no...
Jsmath Utility - https://docs.cavalry.scenegroup.co/no...
Attribute Expressions - https://docs.cavalry.scenegroup.co/us...

https://cavalry.scenegroup.co/

Created in Cavalry 1.5.1