Slide 1

Slide 1 text

USER INTERFACE DESIGN PATTERN WITH CSS3 HTML5 CONFERENCE 2012 SEPTEMBER 8TH 4PM

Slide 2

Slide 2 text

YUYA SAITO CSSRADAR L O CyberAgent

Slide 3

Slide 3 text

Design is not just what it looks like and feels like. Design is how it works. - Steve Jobs “ ”

Slide 4

Slide 4 text

Layer of Experience Smoothing UI with Animation Copy, Transform and Combine Crafting Your Pattern Agenda

Slide 5

Slide 5 text

UI Side of CSS3

Slide 6

Slide 6 text

border-radius .selector { border-radius: 12px; }

Slide 7

Slide 7 text

gradient .selector { background-image: linear-gradient (to bottom, #444444, #999999); }

Slide 8

Slide 8 text

box-shadow .selector { box-shadow: 0px 0px 4px 0px #ffffff; }

Slide 9

Slide 9 text

text-shadow .selector { text-shadow: 1px 1px 3px #888; }

Slide 10

Slide 10 text

multiple-background .selector { background-image: url(bg1.png), url(bg2.png); }

Slide 11

Slide 11 text

@font-face @font-face { font-family: 'WebFont'; src: url('myfont.woff') format('woff'), url('myfont.ttf') format('truetype'); }

Slide 12

Slide 12 text

transform .selector { transform: translate(25px, 50px); transform: rotate(7.5deg); transform: scale(0.8); transform: skew(45deg, 30deg); transform-origin: top left; }

Slide 13

Slide 13 text

Layer of Experience

Slide 14

Slide 14 text

Layer of Web

Slide 15

Slide 15 text

Structure HTML Behavior JS Presentation CSS

Slide 16

Slide 16 text

Experience Layer

Slide 17

Slide 17 text

Critical Non-Critical Experience Layer

Slide 18

Slide 18 text

User Experience Hierarchy of Needs Based on The hierarchy of needs by Abraham Maslow http://uxmovement.com/thinking/are-you-meeting-the-user-experience-hierarchy-of-needs/

Slide 19

Slide 19 text

Functionality Information Aesthetics Usability

Slide 20

Slide 20 text

Critical Non-Critical Aesthetics Usability Functionality Information

Slide 21

Slide 21 text

HTML CSS JS CSS3 JS

Slide 22

Slide 22 text

The design of your website can not only lead to a positive user experience, but it also helps your visitors to reach their goals more efficiently. - Sabina Idler “ ”

Slide 23

Slide 23 text

http://www.amazon.co.jp/dp/4788509210 Emotional Design by Donald A. Norman

Slide 24

Slide 24 text

Progressive Enhancement

Slide 25

Slide 25 text

Progressive enhancement [...] allows the Web document designer, visual designer, and developer to play to their own strengths while enabling each to deliver the information and interactivity demanded by users, while embracing accessibility, future compatibility, and determining user experience based on the capabilities of new devices. - Steven Champeon “ ”

Slide 26

Slide 26 text

Progressive enhancement uses web technologies in a layered fashion that allows everyone to access the basic content and functionality of a web page, using any browser or Internet connection, while also providing an enhanced version of the page to those with more advanced browser software or better bandwidth. - Wikipedia “ ”

Slide 27

Slide 27 text

Know Capability of Browsers

Slide 28

Slide 28 text

http://caniuse.com/

Slide 29

Slide 29 text

http://mobilehtml5.org

Slide 30

Slide 30 text

Start with interaction and be subtle

Slide 31

Slide 31 text

Smoothing UI with Animation

Slide 32

Slide 32 text

We need to give users a sense of location in our applications, and transitions will play an important part in this. - Mark Cossey “ ”

Slide 33

Slide 33 text

Animation Transition ୯७ͰɺεςοϓͷΈͷ มԽͷ৔߹ ෳࡶͰɺ ෳ਺εςοϓ͕ ඞཁͳมԽͷ৔߹

Slide 34

Slide 34 text

Animatable Properties

Slide 35

Slide 35 text

http://oli.jp/2010/css-animatable-properties/

Slide 36

Slide 36 text

Transition Syntax

Slide 37

Slide 37 text

transition-property .selector { transition-property: opacity; } .selector { transition-property: opacity, color; } .selector { transition-property: all; }

Slide 38

Slide 38 text

transition-duration .selector { transition-duration: .15s; }

Slide 39

Slide 39 text

transition-delay .selector { transition-delay: .1s; }

Slide 40

Slide 40 text

transition-timing-function .selector { transition-timing-function: linear; }

Slide 41

Slide 41 text

http://cubic-bezier.com

Slide 42

Slide 42 text

transition .selector { transition: opacity .25s .1s linear; }

Slide 43

Slide 43 text

Animation Syntax

Slide 44

Slide 44 text

@keyframes Animation @keyframes animation-name { from { opacity : 0; } to { opacity : 1; } } @keyframes animation-name { 0% { opacity : 0; } 100% { opacity : 1; } }

Slide 45

Slide 45 text

@keyframes Animation @keyframes animation-name { 0% { opacity : 0; } 25% { opacity : .5; } 70% { opacity : .25; } 100% { opacity : 1; } }

Slide 46

Slide 46 text

animation-name // Animation Name .selector { animation-name: animation-name; }

Slide 47

Slide 47 text

animation-duration .selector { animation-duration: 6s; }

Slide 48

Slide 48 text

animation-delay .selector { animation-delay: 1500ms; }

Slide 49

Slide 49 text

animation-iteration-count // [Number] [infinite] .selector { animation-iteration-count: 1; }

Slide 50

Slide 50 text

animation-timing-function // [ease] [ease-in] [ease-out] // [ease-in-out] [linear] .selector { animation-timing-function: linear; }

Slide 51

Slide 51 text

animation-direction // [normal] [alternate] .selector { animation-direction: normal; }

Slide 52

Slide 52 text

animation .selector { animation: 6s 1500ms 1 linear normal; }

Slide 53

Slide 53 text

Examples of Animating UIs

Slide 54

Slide 54 text

https://github.com/jekyllbootstrap/theme-the-minimum/pull/1

Slide 55

Slide 55 text

No content

Slide 56

Slide 56 text

http://tympanus.net/TipsTricks/CSS3TimedNotifications/

Slide 57

Slide 57 text

No content

Slide 58

Slide 58 text

http://tinyurl.com/3d-image-transitions

Slide 59

Slide 59 text

No content

Slide 60

Slide 60 text

http://jsfiddle.net/ten1seven/p9PwU/2/show/

Slide 61

Slide 61 text

No content

Slide 62

Slide 62 text

http://lab.hakim.se/avgrund/

Slide 63

Slide 63 text

No content

Slide 64

Slide 64 text

Copy, Transform and Combine

Slide 65

Slide 65 text

Innovative and Creative

Slide 66

Slide 66 text

Nobody starts out original. Need copying until the foundation of knowledge and understanding. - Kirby Ferguson “ ”

Slide 67

Slide 67 text

Copy

Slide 68

Slide 68 text

ֶͿ͸ɺ ·ͶͿ ֶͿ ͱಉݯͰɺ ·ͶΔ ਅࣅΔ ͱ΋ಉ͡ޠݯ

Slide 69

Slide 69 text

⌘ + C ⌘ + V

Slide 70

Slide 70 text

https://path.com

Slide 71

Slide 71 text

$44Ͱ͸ͲΜͳ͜ͱ͕Ͱ͖Δͷ͔

Slide 72

Slide 72 text

http://dribbble.com

Slide 73

Slide 73 text

Dribbble for Front-end Devs

Slide 74

Slide 74 text

http://www.webinterfacelab.com

Slide 75

Slide 75 text

http://cssdeck.com

Slide 76

Slide 76 text

http://codepen.io

Slide 77

Slide 77 text

http://cssbutton.me

Slide 78

Slide 78 text

·ͣ͸ਅࣅΔͱ͜Ζ͔Βελʔτɻ ୭΋͕͔ͦ͜Βελʔτ͍͖ͯ͠·͢ɻ

Slide 79

Slide 79 text

Transform

Slide 80

Slide 80 text

≠  GUI

Slide 81

Slide 81 text

No content

Slide 82

Slide 82 text

Good artists copy, great artists steal. - Pablo Picasso “ ”

Slide 83

Slide 83 text

HOW?

Slide 84

Slide 84 text

Ask Questions

Slide 85

Slide 85 text

Ͳ͏ͯͦ͠ͷํ๏Ͱ࣮૷͞Ε͔ͨ ΄͔ʹͲͷΑ͏ͳදݱ΍࣮૷ํ๏͕ ͔͋ͬͨ ͲΜͳલఏ৚͕͔݅͋ͬͨɺ ͲΜͳ੍ݶ͕͋ͬͨͷ͔

Slide 86

Slide 86 text

Try It Yourself

Slide 87

Slide 87 text

There is no substitute for firsthand experience when creating things. The unique aspects of who you are, including qualities you may not like about yourself, are an asset when it comes to creative thinking. No one can see the world exactly the way that you do. - Scott Berkun “ ”

Slide 88

Slide 88 text

Feedback

Slide 89

Slide 89 text

Demo or it didn't happen. - codepen.io “ ”

Slide 90

Slide 90 text

Combine

Slide 91

Slide 91 text

Slide 92

Slide 92 text

Slide 93

Slide 93 text

1 + 1 = 3

Slide 94

Slide 94 text

ίϯϏωʔγϣϯ͸৽͍͠΋ͷΛੜΈग़͢ େࣄͳݤɻ

Slide 95

Slide 95 text

$44͸͜ͷίϯϏωʔγϣϯʹ ڧ͍ݴޠͰ͢ɻ

Slide 96

Slide 96 text

No content

Slide 97

Slide 97 text

keyframes transform: scale() border-radius gradient(radial ...) + + + +

Slide 98

Slide 98 text

Copy, Transform and Combine

Slide 99

Slide 99 text

Crafting Your Pattern

Slide 100

Slide 100 text

A pattern doesn’t need to have a name, and it doesn’t have to come from a book. A pattern is some design trick that is lying around in your head, and when the right problem rises up in front of your nose, the pattern pops into your mind as a solution. - Ryan Singer “ ”

Slide 101

Slide 101 text

http://bit.ly/ryan-singer-from-37signals

Slide 102

Slide 102 text

http://flic.kr/p/9v2Pgx

Slide 103

Slide 103 text

Copy + Transform + Combine UI Kit

Slide 104

Slide 104 text

http://www.premiumpixels.com/freebies/dark-ui-kit-psd/

Slide 105

Slide 105 text

http://365psd.com/day/2-63/

Slide 106

Slide 106 text

http://www.designkindle.com/2011/03/14/solid-ui-kit/

Slide 107

Slide 107 text

Dropdown Breadcrumb Pagination Alert Tab Navigation Button Modal Image slider Form

Slide 108

Slide 108 text

http://twitter.github.com/bootstrap/

Slide 109

Slide 109 text

http://foundation.zurb.com

Slide 110

Slide 110 text

୯७ͳϑϨʔϜϫʔΫͱ͚ͯͩ͠Ͱ͸ͳ͘ 6*σβΠϯύλʔϯͷࢦ਑ͱͯ͠࢖͏ɻ

Slide 111

Slide 111 text

Create Collect # = Pattern

Slide 112

Slide 112 text

Garbage in, Garbage out.

Slide 113

Slide 113 text

I’ve missed more than 9000 shots in my career. I’ve lost almost 300 games. 26 times, I’ve been trusted to take the game winning shot and missed. I’ve failed over and over and over again in my life. And that is why I succeed. - Michael Jordan “ ”

Slide 114

Slide 114 text

CSSRADAR L Thank You!

Slide 115

Slide 115 text

Appendix: CSS Online Tools

Slide 116

Slide 116 text

http://www.colorzilla.com/gradient-editor/

Slide 117

Slide 117 text

http://css3please.com/

Slide 118

Slide 118 text

http://css3generator.com/

Slide 119

Slide 119 text

http://prefixr.com/

Slide 120

Slide 120 text

http://www.dextronet.com/css-buttons-generator/

Slide 121

Slide 121 text

http://boxshadow.ru/

Slide 122

Slide 122 text

http://cubic-bezier.com/

Slide 123

Slide 123 text

http://border-image.com

Slide 124

Slide 124 text

http://flexiejs.com/playground/

Slide 125

Slide 125 text

http://www.aaronlumsden.com/multicol/

Slide 126

Slide 126 text

http://cssarrowplease.com/

Slide 127

Slide 127 text

http://proto.io/freebies/onoff/

Slide 128

Slide 128 text

http://apps.eky.hk/css-triangle-generator/

Slide 129

Slide 129 text

http://www.wordpressthemeshock.com/css-box-machine/

Slide 130

Slide 130 text

http://noisepng.com/

Slide 131

Slide 131 text

http://www.patternify.com/

Slide 132

Slide 132 text

http://bran.name/dump/data-uri-generator/