@hortonstudio/main 1.1.8 → 1.1.10

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.
Files changed (2) hide show
  1. package/animations/hero.js +16 -8
  2. package/package.json +1 -1
@@ -259,21 +259,25 @@ 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
- type: "lines",
268
+ type: "lines,words",
268
269
  mask: "lines",
269
- linesClass: "line"
270
+ linesClass: "line",
271
+ wordsClass: "word",
272
+ reduceWhiteSpace: false
270
273
  };
271
274
  elementsClass = 'lines';
272
275
  } else {
273
276
  splitConfig = {
274
277
  type: "words",
275
278
  mask: "words",
276
- wordsClass: "word"
279
+ wordsClass: "word",
280
+ reduceWhiteSpace: false
277
281
  };
278
282
  elementsClass = 'words';
279
283
  }
@@ -300,21 +304,25 @@ export async function init() {
300
304
  splitConfig = {
301
305
  type: "words,chars",
302
306
  mask: "chars",
303
- charsClass: "char"
307
+ charsClass: "char",
308
+ reduceWhiteSpace: false
304
309
  };
305
310
  elementsClass = 'chars';
306
311
  } else if (splitType === 'line') {
307
312
  splitConfig = {
308
- type: "lines",
313
+ type: "lines,words",
309
314
  mask: "lines",
310
- linesClass: "line"
315
+ linesClass: "line",
316
+ wordsClass: "word",
317
+ reduceWhiteSpace: false
311
318
  };
312
319
  elementsClass = 'lines';
313
320
  } else {
314
321
  splitConfig = {
315
322
  type: "words",
316
323
  mask: "words",
317
- wordsClass: "word"
324
+ wordsClass: "word",
325
+ reduceWhiteSpace: false
318
326
  };
319
327
  elementsClass = 'words';
320
328
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hortonstudio/main",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "scripts": {