Slide 1

Slide 1 text

HELLO!

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

@lynnandtonic

Slide 6

Slide 6 text

CSS ILLUSTRATION

Slide 7

Slide 7 text

• DRAWING PICTURES IN CSS

Slide 8

Slide 8 text

• DRAWING PICTURES IN CSS • DRAWING PICTURES …IN GENERAL

Slide 9

Slide 9 text

• DRAWING PICTURES IN CSS • DRAWING PICTURES …IN GENERAL • ART

Slide 10

Slide 10 text

• DRAWING PICTURES IN CSS • DRAWING PICTURES …IN GENERAL • ART • TECHNIQUES

Slide 11

Slide 11 text

• DRAWING PICTURES IN CSS • DRAWING PICTURES …IN GENERAL • ART • TECHNIQUES • WHY ARE WE DOING THIS?

Slide 12

Slide 12 text

• DRAWING PICTURES IN CSS • DRAWING PICTURES …IN GENERAL • ART • TECHNIQUES • WHY ARE WE DOING THIS? • SVG

Slide 13

Slide 13 text

CSS OPERA LOGO - DAVID DESANDRO

Slide 14

Slide 14 text

CSS OPERA LOGO - DAVID DESANDRO

Slide 15

Slide 15 text

SIMPSONS IN CSS - CHRIS PATTLE

Slide 16

Slide 16 text

AVENGERS IN CSS - MARIO S. MASELLI

Slide 17

Slide 17 text

SPECIES IN PIECES - BRYAN JAMES

Slide 18

Slide 18 text

CSS LEGO EMMETT - RACHEL BULL

Slide 19

Slide 19 text

CSS MIXTAPE - TOM HAZLEDINE

Slide 20

Slide 20 text

CSS ZARA PICKEN ILLUSTRATION - ROSH JUTHERFORD

Slide 21

Slide 21 text

codepen.io

Slide 22

Slide 22 text

WHEN WOULD I EVER USE THIS?

Slide 23

Slide 23 text

INTERMEDIA

Slide 24

Slide 24 text

PURPOSEFUL STUDY & PRACTICE OF YOUR MEDIUM

Slide 25

Slide 25 text

UNDERSTAND & STRETCH

Slide 26

Slide 26 text

UNDERSTAND & STRETCH

Slide 27

Slide 27 text

CSS IS A WEB DESIGNER’S MEDIUM

Slide 28

Slide 28 text

PURPOSEFUL STUDY & PRACTICE

Slide 29

Slide 29 text

A SINGLE DIV a.singlediv.com

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

LIMITED TOOLKIT

Slide 34

Slide 34 text

CONSTRAINTS

Slide 35

Slide 35 text

LIMITED RESOURCES

Slide 36

Slide 36 text

     
         
         
         
         
         
         
         
         
         
         
         
         
         
         
   1    2    3    4    5    6    7    8    9   10   11   12   13   14   15   16  

Slide 37

Slide 37 text

49  
s

Slide 38

Slide 38 text

10  
s

Slide 39

Slide 39 text

 3  
s

Slide 40

Slide 40 text

 1

Slide 41

Slide 41 text

ONE DIV NO EXCEPTIONS

Slide 42

Slide 42 text

NO ADDING BLACK PAINT

Slide 43

Slide 43 text

 1

Slide 44

Slide 44 text

 1

Slide 45

Slide 45 text

 1

Slide 46

Slide 46 text

 
 1    2

Slide 47

Slide 47 text

 
 1    2

Slide 48

Slide 48 text

 
 1    2

Slide 49

Slide 49 text

 
 1    2

Slide 50

Slide 50 text

CSS IS BADASS

Slide 51

Slide 51 text

TECHNIQUES

Slide 52

Slide 52 text

SHAPES

Slide 53

Slide 53 text

RECTANGLES CIRCLES TRIANGLES

Slide 54

Slide 54 text

.rectangle  {      width:  80px;      height:  50px;      background:  red;   }  1    2    3    4    5

Slide 55

Slide 55 text

.circle  {      width:  50px;      height:  50px;      background:  red;      border-­‐radius:  50%;   }  1    2    3    4    5    6

Slide 56

Slide 56 text

.triangle  {      border-­‐bottom:  50px  solid  red;      border-­‐left:  50px  solid  transparent;      border-­‐right:  50px  solid  transparent;   }  1    2    3    4    5

Slide 57

Slide 57 text

.triangle  {      border-­‐top:  20px  solid  red;      border-­‐right:  20px  solid  yellow;      border-­‐bottom:  20px  solid  green;      border-­‐left:  20px  solid  blue;   }  1    2    3    4    5    6

Slide 58

Slide 58 text

.trapezoid  {      width:  50px;      border-­‐bottom:  50px  solid  red;      border-­‐left:  50px  solid  transparent;      border-­‐right:  50px  solid  transparent;   }  1    2    3    4    5    6

Slide 59

Slide 59 text

.dunno  {      border-­‐radius:  150px  /  70px;   }  1    2    3

Slide 60

Slide 60 text

.dunno  {      border-­‐top-­‐left-­‐radius:  150px  50px;      border-­‐top-­‐right-­‐radius:  100px;   }  1    2    3    4

Slide 61

Slide 61 text

BEYOND SHAPES

Slide 62

Slide 62 text

BOX SHADOWS GRADIENTS

Slide 63

Slide 63 text

.circle  {      box-­‐shadow:  10px  10px  10px  black;   }  1    2    3

Slide 64

Slide 64 text

.circle  {      box-­‐shadow:  10px  10px  10px  black,                              100px  0  0  yellow;   }  1    2    3    4

Slide 65

Slide 65 text

.circle  {      box-­‐shadow:  10px  10px  10px  black,                              100px  0  0  yellow,                              180px  0  0  blue;   }  1    2    3    4    5

Slide 66

Slide 66 text

.circle  {      box-­‐shadow:  10px  10px  10px  black,                              100px  0  0  yellow,                              180px  0  0  blue,                              280px  0  0  -­‐20px  grey;   }  1    2    3    4    5    6

Slide 67

Slide 67 text

.cylinder  {      background-­‐image:  linear-­‐gradient(to  right,                                          grey,  white,  grey,  black);   }  1    2    3    4    5

Slide 68

Slide 68 text

.stripes  {      background-­‐image:  repeating-­‐linear-­‐gradient(                                          to  right,                                          red,  red  20px,                                          grey  20px,  grey  40px);   }  1    2    3    4    5    6

Slide 69

Slide 69 text

.multi  {      background-­‐image:  linear-­‐gradient(to  bottom,                                          red,  blue);   }  1    2    3    4

Slide 70

Slide 70 text

.multi  {      background-­‐image:  linear-­‐gradient(to  right,                                          transparent,  black),                                          linear-­‐gradient(to  bottom,                                          red,  blue);   }  1    2    3    4    5    6

Slide 71

Slide 71 text

PSEUDO ELEMENTS

Slide 72

Slide 72 text

div::before  {      background:  yellow;   }   div::after  {      background:  blue;   }  1    2    3    4    5    6

Slide 73

Slide 73 text

div::before  {      background:  yellow;   }   div::after  {      background:  blue;   }  1    2    3    4    5    6

Slide 74

Slide 74 text

DRAWING

Slide 75

Slide 75 text

#@$%!

Slide 76

Slide 76 text

EDGAR DEGAS “Drawing is not the same as form; it is a way of seeing form.”

Slide 77

Slide 77 text

FORM HUE VALUE

Slide 78

Slide 78 text

SHAPE

Slide 79

Slide 79 text

COLOR

Slide 80

Slide 80 text

LIGHT

Slide 81

Slide 81 text

No content

Slide 82

Slide 82 text

LIGHT

Slide 83

Slide 83 text

.button  {      background-­‐image:  linear-­‐gradient(to  bottom,                                          #eee,  #ccc);      box-­‐shadow:  5px  0  5px  rgba(0,0,0,.4);   }  1    2    3    4    5

Slide 84

Slide 84 text

.button  {      background-­‐image:  linear-­‐gradient(to  bottom,                                          #eee,  #ccc);      box-­‐shadow:  5px  0  5px  rgba(0,0,0,.4);   }  1    2    3    4    5

Slide 85

Slide 85 text

EXAMPLES

Slide 86

Slide 86 text

.button  {      background:  skyblue;      border-­‐radius:  50%;   }  1    2    3    4

Slide 87

Slide 87 text

   box-­‐shadow:  0  7px  10px  black(.3);  4

Slide 88

Slide 88 text

   box-­‐shadow:  inset  0  -­‐15px  10px  #45b3e0,                              0  7px  10px  black(.3);  4    5

Slide 89

Slide 89 text

   box-­‐shadow:  inset  0  -­‐10px  10px  black(.3),                              inset  0  -­‐15px  10px  #45b3e0,                              0  7px  10px  black(.3);  4    5    6

Slide 90

Slide 90 text

   box-­‐shadow:  inset  0  -­‐3px  3px  white(.3),                              inset  0  -­‐10px  10px  black(.3),                              inset  0  -­‐15px  10px  #45b3e0,                              0  7px  10px  black(.3);  4    5    6    7

Slide 91

Slide 91 text

   box-­‐shadow:  inset  0  17px  5px  white(.7),                              inset  0  -­‐3px  3px  white(.3),                              inset  0  -­‐10px  10px  black(.3),                              inset  0  -­‐15px  10px  #45b3e0,                              0  7px  10px  black(.3);  4    5    6    7    8

Slide 92

Slide 92 text

   box-­‐shadow:  inset  0  5px  5px  skyblue,                              inset  0  17px  5px  white(.7),                              inset  0  -­‐3px  3px  white(.3),                              inset  0  -­‐10px  10px  black(.3),                              inset  0  -­‐15px  10px  #45b3e0,                              0  7px  10px  black(.3);  4    5    6    7    8    9

Slide 93

Slide 93 text

.button::before  {      border-­‐radius:  50%;      border-­‐top:  1px  solid  black(.6);      border-­‐bottom:  1px  solid  white(.6);   }  1    2    3    4    5

Slide 94

Slide 94 text

   box-­‐shadow:  0  10px  5px  5px  white(.6);  5

Slide 95

Slide 95 text

   box-­‐shadow:  0  2px  5px  5px  skyblue,                              0  10px  5px  5px  white(.6);  5    6

Slide 96

Slide 96 text

   box-­‐shadow:  0  -­‐14px  10px  5px  #45b3e0,                              0  2px  5px  5px  skyblue,                              0  10px  5px  5px  white(.6);  5    6    7

Slide 97

Slide 97 text

   box-­‐shadow:  3px  -­‐15px  7px  -­‐4px  black(.3),                              0  -­‐14px  10px  5px  #45b3e0,                              0  2px  5px  5px  skyblue,                              0  10px  5px  5px  white(.6);  5    6    7    8

Slide 98

Slide 98 text

   box-­‐shadow:  inset  0  20px  2px  white(.3),                              3px  -­‐15px  7px  -­‐4px  black(.3),                              0  -­‐14px  10px  5px  #45b3e0,                              0  2px  5px  5px  skyblue,                              0  10px  5px  5px  white(.6);  5    6    7    8    9

Slide 99

Slide 99 text

   background-­‐image:  radial-­‐gradient(circle  at                                          38px  38px,  #333  10px,                                          transparent  10px); 10   11   12

Slide 100

Slide 100 text

                                       38px  38px,  #333  10px,                                          transparent  10px),                                          radial-­‐gradient(circle  at                                          73px  73px,  #333  10px,                                          transparent  10px),                                          radial-­‐gradient(circle  at                                          38px  73px,  #333  10px,                                          transparent  10px); 11   12   13   14   15   16   17   18

Slide 101

Slide 101 text

.button::after  {      background-­‐image:  linear-­‐gradient(to  right,                                          transparent  35%,  navy  35%,                                          steelblue  40%,  navy  45%,                                          steelblue  50%,  navy  55%,                                          steelblue  60%,  navy  65%,                                          transparent  65%);    1    2    3    4    5    6    7

Slide 102

Slide 102 text

                                       steelblue  60%,  navy  65%,                                          transparent  65%),                                          linear-­‐gradient(to  bottom,                                          transparent  35%,  navy  35%,                                          steelblue  40%,  navy  45%,                                          steelblue  50%,  navy  55%,                                          steelblue  60%,  navy  65%,                                          transparent  65%);    5    6    7    8    9   10   11   12

Slide 103

Slide 103 text

.button::after  {      transform:  rotate(45deg);   }    1    2    3

Slide 104

Slide 104 text

No content

Slide 105

Slide 105 text

No content

Slide 106

Slide 106 text

No content

Slide 107

Slide 107 text

No content

Slide 108

Slide 108 text

No content

Slide 109

Slide 109 text

No content

Slide 110

Slide 110 text

No content

Slide 111

Slide 111 text

No content

Slide 112

Slide 112 text

No content

Slide 113

Slide 113 text

No content

Slide 114

Slide 114 text

No content

Slide 115

Slide 115 text

No content

Slide 116

Slide 116 text

No content

Slide 117

Slide 117 text

No content

Slide 118

Slide 118 text

No content

Slide 119

Slide 119 text

No content

Slide 120

Slide 120 text

No content

Slide 121

Slide 121 text

No content

Slide 122

Slide 122 text

 1

Slide 123

Slide 123 text

MULTIPLES

Slide 124

Slide 124 text

.camera::before  {      background:  #444;   }    1    2    3

Slide 125

Slide 125 text

.camera::before  {      background:  #444;      box-­‐shadow:    0  0  0  2px  #eee,                              -­‐1px  -­‐1px  1px  3px  #333,                              -­‐95px  6px  0  0  #ccc,                                30px  3px  0  12px  #ccc,                              -­‐18px  37px  0  46px  #ccc,                              -­‐96px  -­‐6px  0  -­‐6px  #555;   }    1    2    3    4    5    6    7    8

Slide 126

Slide 126 text

.camera::after  {      background:  #ccc;   }    1    2    3

Slide 127

Slide 127 text

.camera::after  {      background:  #ccc;      box-­‐shadow:    0  3px  2px  #999,                                1px  -­‐2px  0  white,                              -­‐1px  -­‐3px  2px  #555,                                0  0  0  15px  #c2c2c2,                                0  -­‐2px  0  15px  white,                                0  10px  10px  15px  black;   }    1    2    3    4    5    6    7    8

Slide 128

Slide 128 text

BACKGROUND LAYERS

Slide 129

Slide 129 text

No content

Slide 130

Slide 130 text

No content

Slide 131

Slide 131 text

   background-­‐image:  linear-­‐gradient(to  bottom…);    1

Slide 132

Slide 132 text

   background-­‐image:  linear-­‐gradient(to  bottom…),                                                  linear-­‐gradient(to  bottom…);  1    2

Slide 133

Slide 133 text

   background-­‐image:  linear-­‐gradient(to  right…),                                          linear-­‐gradient(to  bottom…),                                                  linear-­‐gradient(to  bottom…);  1    2    3

Slide 134

Slide 134 text

   background-­‐image:  linear-­‐gradient(to  right…),                                            linear-­‐gradient(to  right…),                                          linear-­‐gradient(to  bottom…),                                                  linear-­‐gradient(to  bottom…);  1    2    3    4

Slide 135

Slide 135 text

   background-­‐image:  linear-­‐gradient(to  left…),                                            linear-­‐gradient(to  right…),                                            linear-­‐gradient(to  right…),                                          linear-­‐gradient(to  bottom…),                                                  linear-­‐gradient(to  bottom…);  1    2    3    4    5

Slide 136

Slide 136 text

   background-­‐image:  linear-­‐gradient(to  left…),                                            linear-­‐gradient(to  right…),                                            linear-­‐gradient(to  right…),                                          linear-­‐gradient(to  bottom…),                                                  linear-­‐gradient(to  bottom…);  1    2    3    4    5

Slide 137

Slide 137 text

   background-­‐image:  linear-­‐gradient(to  left…),                                            linear-­‐gradient(to  right…),                                            linear-­‐gradient(to  right…),                                          linear-­‐gradient(to  bottom…),                                                  linear-­‐gradient(to  bottom…);  1    2    3    4    5

Slide 138

Slide 138 text

github.com/lynnandtonic/a-single-div

Slide 139

Slide 139 text

WHEN WOULD I EVER USE THIS?

Slide 140

Slide 140 text

IS THIS PRACTICAL?

Slide 141

Slide 141 text

NOT REALLY

Slide 142

Slide 142 text

SVG

Slide 143

Slide 143 text

TIME

Slide 144

Slide 144 text

PERFORMANCE

Slide 145

Slide 145 text

BROWSER SUPPORT

Slide 146

Slide 146 text

THE CASCADE CAN BE FRAGILE

Slide 147

Slide 147 text

AND YET…

Slide 148

Slide 148 text

COMPS ARE DRAWINGS OF WEBSITES

Slide 149

Slide 149 text

COMPS ARE DRAWINGS OF WEBSITES

Slide 150

Slide 150 text

STRETCH

Slide 151

Slide 151 text

DO MORE WITH LESS

Slide 152

Slide 152 text

CSS IS AWESOME

Slide 153

Slide 153 text

WE TYPE WORDS INTO A TEXT EDITOR

Slide 154

Slide 154 text

ART COMES OUT THE OTHER SIDE

Slide 155

Slide 155 text

THANK YOU @lynnandtonic