🎥 Make videos programmatically with React
fade in source
Jonny Burger649e26720668
diff --git a/packages/convert/app/components/Probe.tsx b/packages/convert/app/components/Probe.tsxindex 04ec6fe65b..10f99d6406 100644--- a/packages/convert/app/components/Probe.tsx+++ b/packages/convert/app/components/Probe.tsx@@ -1,4 +1,5 @@/* eslint-disable complexity */+import clsx from 'clsx';import React, {useCallback, useMemo, useState} from 'react';import {Source} from '~/lib/convert-state';import {useIsNarrow} from '~/lib/is-narrow';@@ -8,6 +9,7 @@ import {SourceLabel} from './SourceLabel';import {TrackSwitcher} from './TrackSwitcher';import {VideoThumbnail, VideoThumbnailRef} from './VideoThumbnail';import {VideoTrackOverview} from './VideoTrackOverview';+import styles from './probe.module.css';import {Button} from './ui/button';import {Card, CardDescription, CardHeader, CardTitle} from './ui/card';import {ScrollArea} from './ui/scroll-area';@@ -106,7 +108,9 @@ export const Probe: React.FC<{</p></CardDescription>) : null}- <CardDescription className="!mt-0 overflow-hidden whitespace-nowrap text-ellipsis">+ <CardDescription+ className={clsx('!mt-0 truncate', styles['fade-in'])}+ >{done ? (<SourceLabel src={src} />) : (diff --git a/packages/convert/app/components/probe.module.css b/packages/convert/app/components/probe.module.cssnew file mode 100644index 0000000000..1738aca9d8--- /dev/null+++ b/packages/convert/app/components/probe.module.css@@ -0,0 +1,15 @@+@keyframes fadeIn {+ from {+ opacity: 0;+ }+ to {+ opacity: 1;+ }+}++.fade-in {+ opacity: 0;+ animation: fadeIn 0.2s ease-in-out;+ animation-fill-mode: forwards;+ animation-delay: 700ms;+}