+
{
+ const title = titleRef.current!;
+ const titleContainer = titleContainerRef.current!;
+
+ title.style.setProperty("--offset", `${titleContainer.clientWidth - title.scrollWidth}px`);
+ title.style.setProperty("--duration", `${Math.max(0.5, (title.scrollWidth - titleContainer.clientWidth) / 7)}s`);
+ }}
+ >
+ {name}
+
+
{isNew &&