Intro.deck.0-1

19
Interaction design sync №1 Will Shown 22 January 2014

Transcript of Intro.deck.0-1

Page 1: Intro.deck.0-1

Interaction design sync №1Will Shown 22 January 2014

Page 2: Intro.deck.0-1

Scope of this session

• Statecharts; why they rock so hard

• Interaction design for the web: ‘graceful degradation’

Page 3: Intro.deck.0-1

Statecharts

Page 4: Intro.deck.0-1

Statecharts show:

• The configuration of states

• The transitions between states

Statecharts are the best way to communicate how interactive features are supposed to work.

Page 5: Intro.deck.0-1

Every transition in a statechart shows:

• From which state the transition originates

• Which state the transition goes to

• Which events trigger the transition

Page 6: Intro.deck.0-1

Types of states, based on the W3C’s spec:

• Simple: contains nothing

• Complex: contains other states

• History: transitions to the most recent sibling state inside a complex state

Page 7: Intro.deck.0-1

Types of transitions:

• State-to-state: the most common type

• Initial: points to the ‘default’ state inside a complex state

Page 8: Intro.deck.0-1

Some examples of statecharts

Page 9: Intro.deck.0-1

Simple microwave

unplugplug in

onidle

cook

startstop

initial

off

Page 10: Intro.deck.0-1

Draggable element

idle

touchrelease

touchdown

dragging touchmove

Page 11: Intro.deck.0-1

Prime prototype

animating menuopen

menuclosed

hist

prefsopen

prefs closed

openprefs

openprefs

closeprefs

finishopening

finishclosing

closemenu

openmenu

navigate

initial

Page 12: Intro.deck.0-1

Let’s make one together.

Page 13: Intro.deck.0-1

Things we might not have discussed:

• Parallel states: complex states where all the children occur simultaneously (good for independent features that behave differently in different global states).

• Execution: things can happen on entry into a state, on exit from a state, or during a transition; if execution is relevant, document it as part of the statechart.

Page 14: Intro.deck.0-1

Interaction design for the web

Page 15: Intro.deck.0-1

Not all interactive designs will work for every user agent.

As with responsive design, build your interactions up from the web’s native interactive elements.

Keep that plan in your back pocket for when the devs need it.

Page 16: Intro.deck.0-1

The web’s native interactive elements:

• radio buttons

• checkboxes

• dropdown menus

• input fields

Page 17: Intro.deck.0-1

Page 18: Intro.deck.0-1

Page 19: Intro.deck.0-1

Thanks!