Animation in Protowire is about transitioning between different states. Currently Protowire supports 2 states. To animate a layer, create a layer or hotspot link that triggers the animation and set the target to Animation in the top bar. In the popover you specify whether the layer you want to animate is currently in it's start state or end state.

You will then enter the animation editor where you will automatically be in the state that's opposite to the design state. For example, if you said the current design is the end state, the state in the animation editor will be set to the start state and visa versa. You can then change properties of layers and Protowire will animate between the two states. Currently Protowire supports animating the following properties:

  • Position
  • Size
  • Rotation
  • Opacity
  • First enabled fill colour and opacity
  • First enabled border colour and opacity
  • Text colour
  • First enabled shadow's x,y and blur
  • Gaussian and motion blur

Animation Topbar

Pressing the play button will play the animation in Sketch. Below the play button you can change the direction of the animation and can have a different durations and easings in each direction.

You can create multiple triggers for the animation within the animation editor. Just create a layer or hotspot link and set the target to one of the state thumbnails at the top. For example you might have a button that shows an overlay and the close button within the overlay would link to the start state to hide it. When you've exited the animation editor the animated layers will go back to their original state. To edit an animation, click on one of the trigger links and press Edit Animation in the popover.

You probably don't want overlays showing in your design all the time as it will obscure the screen's main content. You can hide these layers and Protowire will automatically show them in the prototype when it needs to animate them.

Animated Symbols

To create an animated symbol, select the symbol's artboard and create a layer link with an animation action. To create a screen transition for a buttons create a layer link on the symbol instance and link to another artboard.