Projects/Usability/HIG/Animations: Difference between revisions

From KDE TechBase
< Projects‎ | Usability‎ | HIG
(Created page with "__NOTOC__ ==Purpose== Both the interaction with controls as well as the workflow itself should be clear to users. For instance it has to be obvious if a button can be pressed ...")
 
(HIG moved to community)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
__NOTOC__
{{ Moved To Community | KDE_Visual_Design_Group/HIG/Animations }}
==Purpose==
Both the interaction with controls as well as the workflow itself should be clear to users. For instance it has to be obvious if a button can be pressed at all, if it is in focus and one could use space or enter to execute the function, and whether or not it just has been pressed; Usually, disabled buttons are grayed out, if the focus is on the button it gets an extra frame, and when pressed it has a lowered appearance. Another method to support perception, especially for flat designs, is to use ''animations''.
An animation is a very short sequence of intermediate states between initial and final state. It should be discriminated from high level animations, like wobbling windows, that only serve emotional purpose.
 
== Guidelines ==
* Use animations only if it serves functional purpose.
* Guide the user’s attention by animations and focus through multiple steps of a process or procedure.
* Make animations as much unobtrusive as possible. Good animations are those that users do not notice.
* Use the same kind of animation of similar interactions. For instance, expanding the main menu, a context menu or an accordion should be equally animated.
* Do not use animation that take longer than 200ms.
 
* Follow physical principles when using animations.
** Accelerate and decelerate movement as if has a mass. Consider to correlate control size with mass and apply acceleration accordingly.
** Start animations from their origin.
** Avoid linear spatial paths, except when movement is constrained to an axis or moving towards/away from a specific point in concert with other elements.
 
* Make interactions responsive.
** Show a surface reaction on input (like a drop into water).
** Make the material responding (like pressing a button).
 
* When building a transition, consider both the order in which elements move and the timing of their movement.
** Make sure that the direction in which elements move is cohesive across the transition. Avoid conflicting movements and overlapping paths.
** Consider the depth story: what moves under what, and why?
** Support spatial relationships through consistent motions for incoming and outgoing elements.
 
== Best practice ==
{| class="wikitable"
!Control
!OnCreate
! OnShow
!OnActivate
!OnFocus
!OnExecute
!OnLeave
!OnDestroy
|-
| [[Projects/Usability/HIG/Menu_Bar|Main menu]] || - ||shown from hidden||F10, expand on click||item selection||item clicked||menu closed||-
|-
| [[Projects/Usability/HIG/StatusBar|Statusbar]]  || - ||shown from hidden||-||-||-||-||-
|-
| [[Projects/Usability/HIG/ContextMenu|Contextmenu]] || - ||-||expand on click||item selection||item clicked||menu closed||-
|-
| [[Projects/Usability/HIG/Toolbar|Toolbar]] || - ||-||on dock||-||-||on undock||-
|-
| [[Projects/Usability/HIG/Buttons|Push Button]]    || - ||-||mouse hoover||focus on button (cf. tab order)||button pressed||focus lost||-
|-
| [[Projects/Usability/HIG/Toggle_Buttons|Toggle Button]]  || - || - || - || - || toggle on/off || - || -
|-
| [[Projects/Usability/HIG/Command_Link|Command Link]]  || - || - || currently underline on hoover|| - || link gets clicked || - || -
|-
| [[Projects/Usability/HIG/Dialogs|Dialogs]]  || - || dialog shows up || in case of non-modal dialogs || - || - || - || dialog is being closed
|-
| [[Projects/Usability/HIG/GroupBox|Group Box]]  || - || - || - || - || - || - || -
|-
| [[Projects/Usability/HIG/Splitter|Splitter]]  || - || - || - || - || indicate the ability to resize || - || -
|-
| [[Projects/Usability/HIG/Tabs|Tabs]]  || - || - || - || indicate options when tabcontrol is focused, e.g. switch to next|| - || OnLeave || OnDestroy
|-
| [[Projects/Usability/HIG/|Control]]  || OnCreate || OnShow || OnActivate || OnFocus || OnExecute || OnLeave || OnDestroy
|-
| [[Projects/Usability/HIG/|Control]]  || OnCreate || OnShow || OnActivate || OnFocus || OnExecute || OnLeave || OnDestroy
|-
| [[Projects/Usability/HIG/|Control]]  || OnCreate || OnShow || OnActivate || OnFocus || OnExecute || OnLeave || OnDestroy
|-
| [[Projects/Usability/HIG/|Control]]  || OnCreate || OnShow || OnActivate || OnFocus || OnExecute || OnLeave || OnDestroy
|-
| [[Projects/Usability/HIG/|Control]]  || OnCreate || OnShow || OnActivate || OnFocus || OnExecute || OnLeave || OnDestroy
|}
 
==References==
Parts of the guideline were inspired by [http://www.google.com/design/spec/animation Google's guideline on animations].
 
[[Category:Usability]][[Category: Presentation]][[Category:Layout]]

Latest revision as of 11:26, 4 August 2016

This page is now on the community wiki.