Skip to content
Snippets Groups Projects

UX Guide - add initial animation guidance

Merged username-removed-711361 requested to merge ux-guide-animation into master
1 unresolved thread

Adding guidance to our UX Guide around animation. This is to help us implement #24831 (closed) and add polished, consistent animation throughout GitLab.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
1 # Animation
2
3 Motion is a tool to help convey important relationships, changes or transitions between elements. It should be used sparingly and intentionally, highlighting the right elements at the right moment.
4
5 ## Timings
6
7 The longer distance an object travel, the timing should be longer for the animation. However, when in doubt, we should avoid large, full screen animations.
8
9 Subtle animations, or objects leaving the screen should take **100-200 milliseconds**. Objects entering the screen, or motion we want to use to direct user attention can take between **200-400 milliseconds**. We should avoid animations of longer than 400 milliseconds as they will make the experience appear sluggish. If a specific animation feels like it will need more than 400 milliseconds, revisit the animation to see if there is a simpler, easier, shorter animation to implement.
10
11 ## Easing
12
13 Easing specifies the rate of change of a parameter over time (see [easings.net](http://easings.net/)). Adding an easing curve will make the motion feel more natural. Being consistent with the easing curves will make the whole experience feel more cohesive and connected.
14
15 * When an object is entering the screen, or transforming the scale, position, or shape, use the **easeOutQuint** curve.
16 * When an object is leaving the screen, or transforming the opacity or color, no easing curve is needed. It shouldn't _slow down_ as it is exiting the screen, as that draws attention on the leaving object, where we don't want it. Adding easing to opacity and color transitions will make the motion appear less smooth. Therefore, for these cases, motion should just be **linear**.
  • added 294 commits

    Compare with previous version

  • added 107 commits

    Compare with previous version

  • username-removed-711361 unmarked as a Work In Progress

    unmarked as a Work In Progress

  • username-removed-711361 changed title from WIP: UX Guide - animation guidance to UX Guide - add initial animation guidance

    changed title from WIP: UX Guide - animation guidance to UX Guide - add initial animation guidance

  • Achilleas Pipinellis changed milestone to %8.15

    changed milestone to %8.15

  • mentioned in commit 9e5d9f01

  • Please register or sign in to reply
    Loading