diff --git a/src/components/BroadcastGraphics/Chyrons/Driver/ChyronDriver.tsx b/src/components/BroadcastGraphics/Chyrons/Driver/ChyronDriver.tsx index 0526663..e151d84 100644 --- a/src/components/BroadcastGraphics/Chyrons/Driver/ChyronDriver.tsx +++ b/src/components/BroadcastGraphics/Chyrons/Driver/ChyronDriver.tsx @@ -50,7 +50,9 @@ export function ChyronDriver({ const flagProps = flagMode === "country" ? { flagMode, flag: car.driver.nationality } - : flagMode === "team" ? { flagMode, flag: car.driver.team.id } : undefined; + : flagMode === "team" + ? { flagMode, flag: car.driver.team.id } + : undefined; const dispatch = useDispatch(); @@ -192,7 +194,11 @@ export function ChyronDriver({ open={openState !== 0} transitionProps={[{ property: "opacity", - duration: 500 * DDM, + duration: 1200 * DDM, + delay: 1000 * DDM, + }, { + property: "right", + duration: 2000 * DDM, delay: 1000 * DDM, }]} height={baseHeight * 0.9} diff --git a/src/components/BroadcastGraphics/Chyrons/Driver/styles.ts b/src/components/BroadcastGraphics/Chyrons/Driver/styles.ts index 2856606..eca70e3 100644 --- a/src/components/BroadcastGraphics/Chyrons/Driver/styles.ts +++ b/src/components/BroadcastGraphics/Chyrons/Driver/styles.ts @@ -188,7 +188,8 @@ type FlagContainerProps = { }; export const FlagContainer = styled.div` position: absolute; - right: ${({ right }) => `${right}px`}; + right: ${({ right, open }) => open ? right : right * -3}px; + z-index: -1; display: flex; align-items: center;