PadCodedocs

Animate

Runs steps with animation, so whatever they change moves smoothly instead of jumping.

Category: Messages & Feedback

#When to use it

Use it to make a change move smoothly instead of jumping: a panel opening, a card appearing, items moving in a list.

#Example

An Expand button: Animate with With: Bouncy, and inside Do, Flip On/Off with State: expanded. The view whose Show when is linked to expanded now appears smoothly instead of popping in.

#Good to know

  • Only changes to variables made by the steps inside Do animate. Changes made by steps after the Animate don't.
  • The steps in Do run in order, like any steps.

#Add it

Select a view, open the Inspector's Actions tab, pick when it runs, tap Add action and choose Animate (under Messages & Feedback). Tap the step to open its settings.

#Settings

SettingWhat it doesKindDefault
DoThe steps whose changes should animate.StepsRequired
WithThe kind of motion.Choice: Default, Smooth, Snappy, Bouncy, Spring, Ease In Out, Lineardefault

#See also