Upgrade to Pro — share decks privately, control downloads, hide ads and more …

UI Transitions: The Good, the Bad, and the Coded

thebeckyhamm
March 04, 2014

UI Transitions: The Good, the Bad, and the Coded

Overview of transitions: why and where to use, what to avoid, and some code examples (available on Codepen).

Easing Types: http://easings.net/
Cubic Bezier: http://cubic-bezier.com
Using Transitions: https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Using_CSS_transitions

thebeckyhamm

March 04, 2014
Tweet

More Decks by thebeckyhamm

Other Decks in Design

Transcript

  1. Transitions! Why we need them Where to use them Some

    cool ones Some really horrible ones Examples!
  2. [E]mploying animation not only aids the user in understanding the

    events in the user interface, but also makes the user’s experience of the interface more pleasant and comfortable. Animation: From Cartoons to the User Interface Chang, Ungar 1993.
  3. Slow as molasses. A “forced pause can be cumbersome and

    may break… [user] concentration” Phosphor: Explaining Transitions in the User Interface Using Afterglow Effects Baudish et al, 2006.
  4. Distracting! “Motion is hard to ignore and may thus cause

    users to be distracted by animated transitions” Phosphor: Explaining Transitions in the User Interface Using Afterglow Effects Baudish et al, 2006.
  5. Refresher -­‐webkit-­‐transition:  height  0.2s  ease-­‐in-­‐out;       -­‐moz-­‐transition:  height

     0.2s  ease-­‐in-­‐out;   -­‐ms-­‐transition:  height  0.2s  ease-­‐in-­‐out;   -­‐o-­‐transition:  height  0.2s  ease-­‐in-­‐out;   transition:  height  0.2s  ease-­‐in-­‐out; transition:  height  0.2s  ease-­‐in-­‐out  0.5s; Can also add a delay:
  6. Not everything is transitionable* •  display   •  background-­‐image  

    •  text-­‐decoration-­‐style https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_animated_properties *Definitely a real word