SLIDE 1 CSS
breaking the norm with creative
by @aganaplocha
SLIDE 2
SLIDE 3 CSS
breaking the norm with creative
by @aganaplocha
SLIDE 4 CSS
breaking the norm with creative
by @aganaplocha
SLIDE 5 CSS
breaking the norm with creative
by @aganaplocha
SLIDE 6 create a website
by @aganaplocha
SLIDE 7 create a website
by @aganaplocha
SLIDE 8 create a website
by @aganaplocha
SLIDE 9
create a website
by @aganaplocha
SLIDE 10
SLIDE 11
SLIDE 12
SLIDE 13
SLIDE 14
SLIDE 15
SLIDE 16
SLIDE 17
SLIDE 18 12-columns grid
by @aganaplocha
SLIDE 19 3 boxes
by @aganaplocha
SLIDE 20
?
by @aganaplocha
SLIDE 21
??????
by @aganaplocha
SLIDE 22
SLIDE 26
SLIDE 27
SLIDE 28
you’re awesome dear print
by @aganaplocha
SLIDE 29
SLIDE 30
SLIDE 31
SLIDE 32
SLIDE 33
SLIDE 34
where is CSS?
by @aganaplocha
SLIDE 35
where is CSS?
by @aganaplocha
SLIDE 36
SLIDE 37
the CSS challenge
by @aganaplocha
SLIDE 38
CSS
grid is here!
by @aganaplocha
SLIDE 39 https://www.mozilla.org/en-US/developer/css-grid/
SLIDE 40
SLIDE 41
clipping clip-path
by @aganaplocha
SLIDE 42 by @aganaplocha
SLIDE 43 clip-path: inset(100px 50px); clip-path: circle(50px at 0 100px); clip-path: polygon(50% 0%, 100% 50%, 50% 100%); clip-path: url("#water"); CSS
SLIDE 44 clip-path: inset(100px 50px); clip-path: circle(50px at 0 100px); clip-path: polygon(50% 0%, 100% 50%, 50% 100%); clip-path: url("#water"); CSS
SLIDE 45 by @aganaplocha
SLIDE 46 by @aganaplocha
SLIDE 47
- webkit-clip-path: url("#water");
clip-path: url("#water"); <svg> <defs> <clipPath id="water"> <path d="M468.2,226.8c-1.8-..." /> </clipPath> </defs> </svg> HTML CSS
SLIDE 48
SLIDE 49 clip-path now also supports basic shapes
SLIDE 50 clipping
cut out image
by @aganaplocha
SLIDE 51 by @aganaplocha
SLIDE 53
- webkit-clip-path: url("#clip-plant");
clip-path: url("#clip-plant"); <svg> <defs> <clipPath id="clip-plant"> <path d="M468.2,226.8c-1.8-..." /> </clipPath> </defs> </svg> HTML CSS
SLIDE 54
wait, but why?
by @aganaplocha
SLIDE 55 .jpg .png
123 kB 819 kB
by @aganaplocha
SLIDE 56 .jpg .png
123 kB 819 kB
x6
by @aganaplocha
SLIDE 57 .jpg .png
123 kB 819 kB
x6
by @aganaplocha
SLIDE 58 .jpg .png
123 kB 819 kB
x6
by @aganaplocha
SLIDE 59 https://css-tricks.com/transparent-jpg-svg/
SLIDE 60
masking
by @aganaplocha
SLIDE 61 CSS
by @aganaplocha
mask: url(’mask.png’); mask-image: url(’mask.png’) linear- gradient(-45deg,rgba(0,0,0,1) 20%, rgba(0,0,0,0) 50%); mask-image: url(#masking);
SLIDE 62 mask: url(’mask.png’); mask-image: url(’mask.png’) linear- gradient(-45deg,rgba(0,0,0,1) 20%, rgba(0,0,0,0) 50%); mask-image: url(#masking);
CSS
by @aganaplocha
FF and IE support only this one
SLIDE 63 CSS
by @aganaplocha
- webkit-mask-image: url(image.png);
mask-image: url(image.png);
remember about vendor prefixes
SLIDE 64 mask-image: url(image.png);
- webkit-mask-image: url(image.png);
- webkit-mask-repeat: no-repeat;
- webkit-mask-size: 300px;
CSS
by @aganaplocha
just like for background
SLIDE 65 by @aganaplocha
transparency
SLIDE 66 by @aganaplocha
transparency
SLIDE 67
clipping masking
vs
by @aganaplocha
SLIDE 68 vectors
clipping masking
by @aganaplocha
images
SLIDE 69 vectors
clipping masking
by @aganaplocha
images
SLIDE 70 vectors
clipping masking
by @aganaplocha
images
SLIDE 71 shape
by @aganaplocha
SLIDE 72 shape-outside: circle(50%);
CSS
by @aganaplocha
SLIDE 73 shape-outside: circle(50%);
CSS
you can go with the circle(), polygon(), inset(), ellipse(), but another possible value is the url() function.
by @aganaplocha
SLIDE 74
SLIDE 75
SLIDE 76 float: ... ; height/width: ... ; background: ... ; mask-image: ... ; shape-outside: ... ;
CSS
by @aganaplocha
SLIDE 77 Image from origin 'file://' has been blocked from loading by Cross-Origin Resource Sharing policy: Received an invalid
- response. Origin 'null' is therefore not allowed access.
SLIDE 78 CORS
by @aganaplocha
eeeoooeeeooo
SLIDE 79 CORS
by @aganaplocha
#emergency
SLIDE 80 CORS
by @aganaplocha
#emergency
Cross-Origin Resource Sharing
SLIDE 81
SVG
is sooo cool
by @aganaplocha
SLIDE 82 by @aganaplocha by @aganaplocha
SLIDE 83 <path id="wave" d="M0,33.3c38,0,38,34,76.1,34c38,0,38-34,76.1-34 c38,0,38,34,76.1,34"/> <text> <textPath xlink:href="#wave"startOffset="0%"> <tspan>don’t be afraid of checking out cool things</tspan> </textPath> </text> SVG CODE
by @aganaplocha
SLIDE 84
SLIDE 85 chaos
you’re welcome
by @aganaplocha
SLIDE 86 /prettyuglyproject
SLIDE 87
SLIDE 88
SLIDE 89
SLIDE 90
SLIDE 91 let’s make Web more crazy!
zzzzzzzzzz
by @aganaplocha
SLIDE 92 let’s make Web more crazy!
zzzzzzzzzz
by @aganaplocha
SLIDE 94 by @aganaplocha
Henri Matisse
„ „
Creativity takes courage
SLIDE 95
create a website
by @aganaplocha
SLIDE 98 by @aganaplocha
Henri Matisse
„ „
Creativity takes courage
SLIDE 99 ssstickers! tattoosss!
CONTEST!
@aganaplocha @pitercss_conf
SLIDE 100 which CSS properties are necessary to achieve this effect?
CONTEST!
@aganaplocha @pitercss_conf
SLIDE 101 thank you!
@aganaplocha
SLIDE 102 let’s break the norm
@aganaplocha