What Is a Stack?
A Stack is a special type of Group that defines the layout of its child Layers.
How to Stack?
To Stack layers or groups, select them and click the Stack button in Layout panel.
A Stack has 3 properties:
- Direction: Defines if stacking of child Layers is Horizontal or Vertical
- Alignment: Can be Top/Center/Bottom/Spread
- Spacing: Defines the spacing between each child Layer
Defines if stacking of child Layers is Horizontal or Vertical.
Can be Top/Center/Bottom/Spread
Defines the spacing between each child Layer.
When you hide a layer, or override a symbol to ‘none’, the stack will ignore it while rearranging the other layers.
Notice how in the example below, the Body Layer replaces the space of the hidden Subtitle Layer when collapsing is checked in.
Stacks can be nested within other Stacks.
If you have a single Stack Group as a Symbol, it will resize the Symbol instance for Overrides. This is optional, but default for new Stacks is On.
You can use negative values. Main use-case here is overlapping border.
Click the spacing label and drag it to the sides for easier use.
Get Started with Anima!
- Creating a High-Fidelity Prototyping in Sketch
- How to Publish a Website and Host it With Anima
- How to Handoff Design Specs to Developers
- How to Export Sketch to HTML
- Team Collaboration
We’re super excited to have you trying it out and hearing your feedback.