8
8
> -->
9
9
<slide id =" intro" >
10
10
<h1 >Easing Gradients, the Squircle of Colors</h1 >
11
- <p >Andreas Larsen<br >@larsenwork</p >
11
+ <p >Andreas Larsen<br >@larsenwork<br >piter.larsen.work< /p >
12
12
</slide >
13
13
<slide id =" helloWorld" :steps =" 2" >
14
14
<h1 v-if =" step == 1" >piter.larsen.work</h1 >
15
15
<h1 v-if =" step == 2" >Hello World</h1 >
16
16
<img src =" /images/piter/corgi.png" class =" corgi" >
17
17
</slide >
18
- <slide id =" me" :steps =" 2" >
19
- <img v-if =" step == 1" src =" /images/piter/me.jpg" class =" u-cover" alt =" " >
20
- <div v-if =" step == 2" class =" eg-slide-gradient" >
18
+ <slide id =" me" >
19
+ <img src =" /images/piter/me.jpg" class =" u-cover" alt =" " >
20
+ </slide >
21
+ <slide id =" blame" >
22
+ <h1 >Blame typography</h1 >
23
+ <p >Also, people will notice!</p >
24
+ </slide >
25
+ <slide id =" wow" :steps =" 4" >
26
+ <template v-if =" step == 1 " >
27
+ <h1 class =" is-emoji" >👎</h1 >
28
+ <p >“Wow, that gradient on top of the picture is colorful”</p >
29
+ </template >
30
+ <template v-if =" step == 2 " >
31
+ <h1 class =" is-emoji" >👍</h1 >
32
+ <p >“Wow, that is nice and colorful picture”</p >
33
+ </template >
34
+ <template v-if =" step == 3 " >
35
+ <h1 class =" is-emoji" >👎</h1 >
36
+ <p >“Wow, this gradient really helps me read this text that is above that picture”</p >
37
+ </template >
38
+ <template v-if =" step == 4 " >
39
+ <h1 class =" is-emoji" >👍</h1 >
40
+ <p >“Wow, this text is easily readable even on top of the picture.”</p >
41
+ </template >
42
+ </slide >
43
+ <slide id =" nurse" >
44
+ <div class =" eg-slide-gradient" >
21
45
<img src =" /images/piter/nurse.jpg" class =" u-cover " alt =" " >
22
46
</div >
23
47
</slide >
24
48
<slide id =" mason" :steps =" 2" >
25
49
<div v-if =" step == 1" class =" eg-slide-gradient" >
26
50
<img src =" /images/piter/bricklaying.jpg" class =" u-cover lucy" >
27
51
</div >
28
- <!-- <iframe v-if="step == 1" class="is-transparent" src="https://www.youtube.com/embed/3XD3DDWrt6Q?rel=0&autoplay=1&mute=1&controls=0&showinfo=0&start=200&end=250" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen /> -->
29
52
<div v-if =" step == 2" class =" u-position-cover u-grid u-grid--2-1" >
30
53
<img src =" /images/piter/grundtvig1.jpg" class =" u-cover" >
31
54
<img src =" /images/piter/grundtvig2.jpg" class =" u-cover" >
36
59
<img v-if =" step >= 2" src =" /images/piter/savanna.jpg" class =" u-cover" >
37
60
<div v-if =" step == 3" class =" eg-slideshow-lion" >🦁</div >
38
61
</slide >
39
- <slide id =" medical" :steps =" 2" >
40
- <h1 v-if =" step == 1" class =" shit" >Hit<br >Shappens</h1 >
41
- <img v-if =" step == 2" src =" /images/piter/tiles.jpg" class =" u-cover" >
62
+ <slide id =" tiles" :steps =" 3" >
63
+ <img v-if =" step == 1" src =" /images/piter/girih-tiles.jpg" class =" u-cover" >
64
+ <h1 v-if =" step == 2" class =" shit" >Hit<br >Shappens</h1 >
65
+ <img v-if =" step == 3" src =" /images/piter/tiles.jpg" class =" u-cover" >
42
66
<!-- Some things about tiles and then rods / ganglion potential. -->
43
67
</slide >
44
- <momondo id =" momondo" />
68
+ <slide id =" momondo" :steps =" 3" >
69
+ <div v-if =" step == 1" class =" eg-slide-content eg-slide-scroll" >
70
+ <img src =" /images/piter/momondo-a.png" >
71
+ </div >
72
+ <div v-if =" step == 2" class =" eg-slide-content u-grid u-grid--2-1" >
73
+ <div class =" eg-slide-momondo" >
74
+ <img src =" /images/piter/momondo-a.png" >
75
+ </div >
76
+ <div class =" eg-slide-momondo" >
77
+ <img src =" /images/piter/momondo-b.png" >
78
+ </div >
79
+ </div >
80
+ </slide >
81
+ <slide id =" css tricks" :steps =" 3" >
82
+ <iframe v-if =" step == 1" src =" https://css-tricks.com/easing-linear-gradients/" />
83
+ <img v-if =" step == 2" src =" /images/piter/twitter.jpg" class =" u-cover u-cover--top" >
84
+ <img v-if =" step == 3" src =" /images/piter/github.jpg" class =" u-cover u-cover--top" >
85
+ </slide >
45
86
<linear-to-easing id =" easeDemo" />
46
- <slide :steps =" 2" >
47
- <prism language =" javascript" label =" CSSWG Proposal" >{{ js }}</prism >
48
- <p v-if =" step >= 0" >{{ step }}</p >
87
+ <slide >
88
+ <prism language =" css" label =" CSSWG Proposal" >{{ futureCSS }}</prism >
49
89
</slide >
50
90
<color-spaces-demo />
51
91
<blur />
98
138
import eagle from ' eagle.js'
99
139
import slideshowMethods from ' ~/components/mixins/slideshow'
100
140
import prism from ' ~/components/prism'
141
+ import gradientOutput from ' ~/components/tools/gradient/calculations/gradient-output'
101
142
import {
102
143
linearToEasing ,
103
144
colorSpacesDemo ,
104
- momondo ,
105
145
blur ,
106
146
gammaCorrection ,
107
147
} from ' ~/components/slides'
@@ -111,11 +151,10 @@ export default {
111
151
prism,
112
152
linearToEasing,
113
153
colorSpacesDemo,
114
- momondo,
115
154
blur,
116
155
gammaCorrection,
117
156
},
118
- mixins: [eagle .slideshow , slideshowMethods],
157
+ mixins: [eagle .slideshow , slideshowMethods, gradientOutput ],
119
158
props: {
120
159
mouseNavigation: { default: false , type: Boolean },
121
160
// backBySlide: { default: true, type: Boolean },
@@ -131,6 +170,18 @@ this is a very long line which we normally shouldn't be using`,
131
170
// },
132
171
}
133
172
},
173
+ computed: {
174
+ futureCSS : function () {
175
+ return ` #future {
176
+ linear-gradient(
177
+ ${ this .gradientDirection } ,
178
+ ${ this .gradientColor1 } ,
179
+ ${ this .gradientFunction } ,
180
+ ${ this .gradientColor2 }
181
+ );
182
+ };`
183
+ },
184
+ },
134
185
watch: {
135
186
currentSlide : function () {
136
187
if (this .currentSlide .$attrs .id ) {
0 commit comments