diff --git a/frontend/src/passagesPanel.tsx b/frontend/src/passagesPanel.tsx
index 0d469ed..143111a 100644
--- a/frontend/src/passagesPanel.tsx
+++ b/frontend/src/passagesPanel.tsx
@@ -1,12 +1,11 @@
import { VoidComponent, createResource, onMount, ParentComponent, ParentProps, Show, useContext, For } from 'solid-js';
import { createDateNow, getTime } from '@solid-primitives/date';
-import { timeline } from '@motionone/dom';
import { AnimationOptions } from '@motionone/types';
import { Motion } from "@motionone/solid";
import { format } from "date-fns";
import { Line, TrafficStatus } from './types';
-import { renderLineTransportMode, renderLinePicto } from './utils';
+import { renderLineTransportMode, renderLinePicto, ScrollingText } from './utils';
import { BusinessDataContext, BusinessDataStore } from "./businessData";
import "./passagesPanel.scss";
@@ -123,24 +122,6 @@ const DestinationPassages: VoidComponent<{ line: Line, destination: string }> =
// const trafficStatusStyle = { fill: trafficStatusColor.get(props.line.trafficStatus) };
const trafficStatusStyle = { fill: trafficStatusColor.get(TrafficStatus.UNKNOWN) };
- let destinationViewboxRef: SVGSVGElement | undefined = undefined;
- let destinationTextRef: SVGTextElement | undefined = undefined;
-
- onMount(() => {
- if (destinationViewboxRef !== undefined && destinationTextRef !== undefined) {
- const overlap = destinationTextRef.getComputedTextLength() - destinationViewboxRef.viewBox.baseVal.width;
- if (overlap > 0) {
- timeline(
- [
- [destinationTextRef, { x: [-overlap] }, { duration: 5 }],
- [destinationTextRef, { x: [0] }, { duration: 2 }],
- ],
- { repeat: Infinity },
- );
- }
- }
- });
-
return (
@@ -148,14 +129,7 @@ const DestinationPassages: VoidComponent<{ line: Line, destination: string }> =
{renderLinePicto(props.line)}
-
+