From: soufiane Date: Mon, 15 Dec 2025 13:42:22 +0000 (+0100) Subject: wait #7831 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=5da395b2272c03ed744fa39d8b7d011dc9f1fcc9;p=fluidbook-v3.git wait #7831 --- diff --git a/js/106-logos.js b/js/106-logos.js index b9093e5..31b437b 100644 --- a/js/106-logos.js +++ b/js/106-logos.js @@ -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, diff --git a/less/106-logos.less b/less/106-logos.less index 9f6a2ce..9718e65 100644 --- a/less/106-logos.less +++ b/less/106-logos.less @@ -15,7 +15,7 @@ gap: 70px; justify-content: left; width: max-content; - animation: marquee 35s linear infinite forwards; + animation: marquee linear infinite forwards; @media (max-width: 1299px) { padding: 0;