8
8
< style >
9
9
@font-face {
10
10
font-family : 'Amstelvar VF' ;
11
- src : url ('fonts/Amstelvar-Roman -VF.woff2' ) format ('woff2-variations' );
11
+ src : url ('fonts/AmstelvarAlpha -VF.woff2' ) format ('woff2-variations' );
12
12
font-weight : 300 900 ;
13
13
font-stretch : 75 150 ;
14
14
font-style : normal;
15
15
font-display : swap;
16
16
}
17
- @font-face {
18
- font-family : 'Amstelvar VF' ;
19
- src : url ('fonts/Amstelvar-Italic-VF.woff2' ) format ('woff2-variations' );
20
- font-weight : normal;
21
- font-stretch : normal;
22
- font-style : italic;
23
- font-display : swap;
24
- }
25
17
26
18
html {
27
19
box-sizing : border-box;
119
111
--text-wdth : 100 ;
120
112
--text-opsz : 16 ;
121
113
}
122
- .container2 h1 , . container2 h2 , . container2 p {
114
+ .container2 > * {
123
115
font-size : 5rem ;
124
- font-variation-settings : 'wght' var (--text-wght ), 'wdth' var (--text-wdth ), 'opsz' var (--text-opsz );
116
+ font-variation-settings : 'wght' var (--text-wght ), 'wdth' var (--text-wdth ), 'opsz' var (--text-opsz ), 'GRAD' var ( --text-GRAD )
125
117
}
126
118
.container2 h1 {
127
119
--text-wght : 450 ;
135
127
--text-opsz : 36 ;
136
128
font-size : 2.25rem ;
137
129
}
130
+ .container2 h2 : hover {
131
+ --text-GRAD : 130 ;
132
+ }
138
133
.container2 p {
139
134
font-size : 1rem ;
140
135
}
@@ -217,7 +212,7 @@ <h2>CHAPTER 1. Loomings.</h2>
217
212
< section class ="section section2 ">
218
213
< div class ="container container2 ">
219
214
< h1 > Moby Dick</ h1 >
220
- < h2 > CHAPTER 1. Loomings.</ h2 >
215
+ < h2 > CHAPTER 1. Loomings. (hover here) </ h2 >
221
216
< p >
222
217
Call me Ishmael. Some years ago—never mind how long precisely–having
223
218
little or no money in my purse, and nothing particular to interest me on
@@ -243,10 +238,11 @@ <h2>CHAPTER 1. Loomings.</h2>
243
238
--text-wght: 375;
244
239
--text-wdth: 100;
245
240
--text-opsz: 16;
241
+ --text-GRAD: 88;
246
242
}
247
- .container2 h1, .container2 h2, .container2 p {
243
+ .container2 > * {
248
244
font-size: 5rem;
249
- font-variation-settings: 'wght' var(--text-wght), 'wdth' var(--text-wdth), 'opsz' var(--text-opsz);
245
+ font-variation-settings: 'wght' var(--text-wght), 'wdth' var(--text-wdth), 'opsz' var(--text-opsz), 'GRAD' var(--text-GRAD) ;
250
246
}
251
247
.container2 h1 {
252
248
--text-wght: 450;
@@ -260,14 +256,17 @@ <h2>CHAPTER 1. Loomings.</h2>
260
256
--text-opsz: 36;
261
257
font-size: 2.25rem;
262
258
}
259
+ .container2 h2:hover {
260
+ --text-GRAD: 130;
261
+ }
263
262
.container2 p {
264
263
font-size: 1rem;
265
264
}
266
265
</ textarea >
267
266
< textarea id ="code2 " class ="playable-html2 ">
268
267
< div class ="container container2 ">
269
268
< h1 > Moby Dick</ h1 >
270
- < h2 > CHAPTER 1. Loomings.</ h2 >
269
+ < h2 > CHAPTER 1. Loomings. (hover here) </ h2 >
271
270
< p >
272
271
Call me Ishmael. Some years ago—never mind how long precisely–having
273
272
little or no money in my purse, and nothing particular to interest me on
0 commit comments