@hortonstudio/main 1.1.8 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/animations/hero.js +12 -6
- package/package.json +1 -1
package/animations/hero.js
CHANGED
@@ -259,21 +259,24 @@ export async function init() {
|
|
259
259
|
splitConfig = {
|
260
260
|
type: "words,chars",
|
261
261
|
mask: "chars",
|
262
|
-
charsClass: "char"
|
262
|
+
charsClass: "char",
|
263
|
+
reduceWhiteSpace: false
|
263
264
|
};
|
264
265
|
elementsClass = 'chars';
|
265
266
|
} else if (splitType === 'line') {
|
266
267
|
splitConfig = {
|
267
268
|
type: "lines",
|
268
269
|
mask: "lines",
|
269
|
-
linesClass: "line"
|
270
|
+
linesClass: "line",
|
271
|
+
reduceWhiteSpace: false
|
270
272
|
};
|
271
273
|
elementsClass = 'lines';
|
272
274
|
} else {
|
273
275
|
splitConfig = {
|
274
276
|
type: "words",
|
275
277
|
mask: "words",
|
276
|
-
wordsClass: "word"
|
278
|
+
wordsClass: "word",
|
279
|
+
reduceWhiteSpace: false
|
277
280
|
};
|
278
281
|
elementsClass = 'words';
|
279
282
|
}
|
@@ -300,21 +303,24 @@ export async function init() {
|
|
300
303
|
splitConfig = {
|
301
304
|
type: "words,chars",
|
302
305
|
mask: "chars",
|
303
|
-
charsClass: "char"
|
306
|
+
charsClass: "char",
|
307
|
+
reduceWhiteSpace: false
|
304
308
|
};
|
305
309
|
elementsClass = 'chars';
|
306
310
|
} else if (splitType === 'line') {
|
307
311
|
splitConfig = {
|
308
312
|
type: "lines",
|
309
313
|
mask: "lines",
|
310
|
-
linesClass: "line"
|
314
|
+
linesClass: "line",
|
315
|
+
reduceWhiteSpace: false
|
311
316
|
};
|
312
317
|
elementsClass = 'lines';
|
313
318
|
} else {
|
314
319
|
splitConfig = {
|
315
320
|
type: "words",
|
316
321
|
mask: "words",
|
317
|
-
wordsClass: "word"
|
322
|
+
wordsClass: "word",
|
323
|
+
reduceWhiteSpace: false
|
318
324
|
};
|
319
325
|
elementsClass = 'words';
|
320
326
|
}
|