Guidelines
Bringing layouts to life.
Motion can introduce elements of delight and activity for users. Used sparingly, it can focus their attention and help them navigate through the UI. Here we discuss motion generally, the specific page-level navigations available on iOS and Android, and custom animations.
Deciding what type of animation to use is more art than science. They should be quick but not jarring. To achieve this balance we generally use short durations for animations with smaller items and those moving smaller distances. Larger objects and objects moving larger distances will use longer durations.
For those familiar with easing values on the web these are slightly more aggressive than a browser’s animation-timing-function
defaults.
Easing tokens are available for use in SCSS and Javascript. iOS and Android should use their platform’s built-in easings.
cubic-bezier(0.50, 0, 1, 1)
Moves from slow to fast.
cubic-bezier(0, 0, 0.40, 1)
Moves from fast to slow.
cubic-bezier(0.45, 0, 0.40, 1)
Moves slowly on both ends.
Determines the length of the animation. The length of the animation usually corresponds to the size and distance of the animation.
Duration tokens are available for all platforms.
Token | Duration |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
These first three are generic examples of motion. Click each to toggle the animation.
Color transition
duration-3
with ease-in
Pop-up
duration-2
with ease-out
Slide
duration-5
with ease-out
And these three examples are based on interactions currently used in Thumbtack products.
Banner slide down/up
duration-3
with ease-in
Waitng for response
Hover/touch scale
duration-2
with ease-out
Skip fade out/in
duration-4
with ease-out
iOS and Android each ship with a number of stock page-level transitions. In this guide we’ll define which transitions are available on each platform, when each should be used, what’s involved in building custom transitions, and how transitions should be communicated by designers to developers in their layouts.
Click on any of the letters to toggle the animations. Note that the transition speeds used in these examples has been slowed to better convey how the transition works.
“Pushes” a page out of the way for the other, sliding in from the right to go deeper into the UI.
A page slides from bottom and stacks above parent page.
Page slides from bottom, overtakes entire screen.
“Pushes” a page out of the way for the other, sliding in from the right to go deeper into the UI.
Page overtakes unrelated existing page with slight grow.
Transition from a child expanding to full screen.
We generally recommend using the stock animations that are pre-packaged on the different platforms. The primary reason for this is consistency.
Users get accustomed to page-level interactions. They become conventions. Introducing a new way for the user to interact, or changing existing ones, can be disorienting and confusing, particularly when a standard transition will do.
Also, these interactions are changed occasionally in OS releases. If we bypass the stock animations our users will not benefit from these updates, again distancing them from the convention.
A custom transition can be built into a feature or flow if it uniquely improves the user experience as they pass through it.
For example, as of late 2019, the iOS App Store home used a custom navigation that pushes the article out and over the link. Instead of an overlay sliding from the right or bottom the user has the sense of moving deeper into the UI, experiencing the hierarchy in a less jarring way.
Custom transitions like these should be vetted with prototypes, user testing, and native developers who will determine the technical feasibility of building and maintaining it.
The inability to communicate motion in static layouts has been a long-standing problem in the design world. In the absence of this information it is often up to the native developer to decide how to implement it.
To alleviate this problem with page-level transitions we recommend designers to use the motion annotations we’ve provided in Figma.
Example transition annotations available in Figma.