@bebranded/bb-contents 1.0.14-beta → 1.0.15-beta

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/bb-contents.js +5 -5
  2. package/package.json +1 -1
package/bb-contents.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * BeBranded Contents
3
3
  * Contenus additionnels français pour Webflow
4
- * @version 1.0.13-beta
4
+ * @version 1.0.15-beta
5
5
  * @author BeBranded
6
6
  * @license MIT
7
7
  * @website https://www.bebranded.xyz
@@ -17,7 +17,7 @@
17
17
 
18
18
  // Configuration
19
19
  const config = {
20
- version: '1.0.13-beta',
20
+ version: '1.0.15-beta',
21
21
  debug: window.location.hostname === 'localhost' || window.location.hostname.includes('webflow.io'),
22
22
  prefix: 'bb-', // utilisé pour générer les sélecteurs (data-bb-*)
23
23
  i18n: {
@@ -320,7 +320,7 @@
320
320
  if (element.bbProcessed) return;
321
321
  element.bbProcessed = true;
322
322
 
323
- const speed = bbContents._getAttr(element, 'bb-marquee-speed') || '30';
323
+ const speed = bbContents._getAttr(element, 'bb-marquee-speed') || '100';
324
324
  const direction = bbContents._getAttr(element, 'bb-marquee-direction') || 'left';
325
325
  const pause = bbContents._getAttr(element, 'bb-marquee-pause') || 'true';
326
326
  const gap = bbContents._getAttr(element, 'bb-marquee-gap') || '50';
@@ -345,7 +345,7 @@
345
345
  align-items: center;
346
346
  ${orientation === 'vertical' ? 'flex-direction: column;' : ''}
347
347
  gap: ${gap}px;
348
- animation: marquee ${speed}s linear infinite;
348
+ animation: marquee ${speed}ms linear infinite;
349
349
  ${direction === 'right' ? 'animation-direction: reverse;' : ''}
350
350
  ${orientation === 'vertical' ? 'animation-name: marquee-vertical;' : ''}
351
351
  `;
@@ -399,7 +399,7 @@
399
399
  // Délai pour l'animation
400
400
  const isVertical = orientation === 'vertical';
401
401
  setTimeout(() => {
402
- scrollContainer.style.animation = `marquee${isVertical ? '-vertical' : ''} ${speed}s linear infinite`;
402
+ scrollContainer.style.animation = `marquee${isVertical ? '-vertical' : ''} ${speed}ms linear infinite`;
403
403
  if (direction === 'right') {
404
404
  scrollContainer.style.animationDirection = 'reverse';
405
405
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bebranded/bb-contents",
3
- "version": "1.0.14-beta",
3
+ "version": "1.0.15-beta",
4
4
  "description": "Contenus additionnels français pour Webflow",
5
5
  "main": "bb-contents.js",
6
6
  "scripts": {