]> _ Git - fluidbook-v3.git/commitdiff
wait #7831
authorsoufiane <soufiane@cubedesigners.com>
Mon, 15 Dec 2025 13:42:22 +0000 (14:42 +0100)
committersoufiane <soufiane@cubedesigners.com>
Mon, 15 Dec 2025 13:42:22 +0000 (14:42 +0100)
js/106-logos.js
less/106-logos.less

index b9093e569199b0196451ec77768c12e7cbb7cb1f..31b437b009a8666d699197b04373180dd6268649 100644 (file)
@@ -6,6 +6,10 @@ function load_logo() {
     const picturesWidth = Array.from(pictures.map((v,i) => {return $(i).width()}))
     const ww = $(window).innerWidth()
     const initialValue = 0;
+    const speed = 30;
+    const width = container[0].scrollWidth / 2;
+
+    container.css('animation-duration', `${width / speed}s`)
 
     const picturesTotalWidth = picturesWidth.reduce(
         (accumulator, currentValue) => accumulator + currentValue,
index 9f6a2cedc8163cd3d41a77315bc7dbb7e4da4b02..9718e659fb7b8d6cfc2be82e0199d241d19678c1 100644 (file)
@@ -15,7 +15,7 @@
                gap: 70px;\r
                justify-content: left;\r
                width: max-content;\r
-               animation: marquee 35s linear infinite forwards;\r
+               animation: marquee linear infinite forwards;\r
 \r
                @media (max-width: 1299px) {\r
                        padding: 0;\r