@bebranded/bb-contents 1.0.25-beta → 1.0.27-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 +4 -4
  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.25-beta
4
+ * @version 1.0.27-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.25-beta',
20
+ version: '1.0.27-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: {
@@ -342,7 +342,7 @@
342
342
  mainContainer.style.cssText = `
343
343
  position: relative;
344
344
  width: 100%;
345
- height: ${isVertical ? height + 'px' : 'auto'};
345
+ height: ${isVertical ? (height === 'auto' ? 'auto' : height + 'px') : 'auto'};
346
346
  overflow: hidden;
347
347
  min-height: ${isVertical ? '100px' : '50px'};
348
348
  ${minHeight ? `min-height: ${minHeight};` : ''}
@@ -471,7 +471,7 @@
471
471
  scrollContainer.style.width = totalSize + 'px';
472
472
 
473
473
  let currentPosition = direction === 'right' ? -contentSize - parseInt(gap) : 0;
474
- const step = (parseFloat(speed) * 2) / 60; // Même logique que le vertical
474
+ const step = (parseFloat(speed) * 0.5) / 60; // Vitesse réduite pour l'horizontal
475
475
  let isPaused = false;
476
476
 
477
477
  // Fonction d'animation JavaScript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bebranded/bb-contents",
3
- "version": "1.0.25-beta",
3
+ "version": "1.0.27-beta",
4
4
  "description": "Contenus additionnels français pour Webflow",
5
5
  "main": "bb-contents.js",
6
6
  "scripts": {