From 5da395b2272c03ed744fa39d8b7d011dc9f1fcc9 Mon Sep 17 00:00:00 2001 From: soufiane Date: Mon, 15 Dec 2025 14:42:22 +0100 Subject: [PATCH] wait #7831 --- js/106-logos.js | 4 ++++ less/106-logos.less | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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; -- 2.39.5