📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
Smooth timeline transition
Blue Mousec7e529eed552
diff --git a/web/app/pages/Project/tabs/Sessions/SessionReplayModal.tsx b/web/app/pages/Project/tabs/Sessions/SessionReplayModal.tsxindex f60f60c6e..a9098a9e7 100644--- a/web/app/pages/Project/tabs/Sessions/SessionReplayModal.tsx+++ b/web/app/pages/Project/tabs/Sessions/SessionReplayModal.tsx@@ -1117,6 +1117,10 @@ export const SessionReplayModal = ({duration > 0? Math.min(100, Math.max(0, (currentTime / duration) * 100)): 0+ const progressStyle = {+ '--replay-progress': `${progressPercent}%`,+ '--replay-progress-scale': progressPercent / 100,+ } as CSSPropertiesconst activeStep = useMemo(() => getNearestStep(timelineSteps, currentTime),[currentTime, timelineSteps],@@ -2002,14 +2006,17 @@ export const SessionReplayModal = ({</div>) : null}- <div className='relative h-[3px] w-full rounded-full bg-white/30 transition-[height] duration-100 ease-out group-hover/scrubber:h-[5px]'>+ <div+ className='relative h-[3px] w-full rounded-full bg-white/30 transition-[height] duration-100 ease-out group-hover/scrubber:h-[5px]'+ data-playing={isPlaying ? 'true' : 'false'}+ style={progressStyle}+ ><div- className='absolute inset-y-0 left-0 rounded-full bg-red-600'- style={{ width: `${progressPercent}%` }}+ className='replay-progress-fill absolute inset-y-0 left-0 w-full rounded-full bg-red-600'+ aria-hidden/><span- className='absolute top-1/2 size-3 -translate-x-1/2 -translate-y-1/2 scale-0 rounded-full bg-red-600 shadow-sm transition-transform duration-100 ease-out group-hover/scrubber:scale-100'- style={{ left: `${progressPercent}%` }}+ className='replay-progress-thumb absolute top-1/2 size-3 rounded-full bg-red-600 shadow-sm'aria-hidden/></div>diff --git a/web/app/pages/Project/tabs/Sessions/replayPlayer.css b/web/app/pages/Project/tabs/Sessions/replayPlayer.cssindex 6336b9438..4d265570d 100644--- a/web/app/pages/Project/tabs/Sessions/replayPlayer.css+++ b/web/app/pages/Project/tabs/Sessions/replayPlayer.css@@ -89,6 +89,33 @@.replay-scrubber:focus-visible {outline: none;}+.replay-progress-fill {+ transform: scaleX(var(--replay-progress-scale, 0));+ transform-origin: left center;+}+.replay-progress-thumb {+ left: var(--replay-progress, 0%);+ transform: translate3d(-50%, -50%, 0) scale(0);+}+.group\/scrubber:hover .replay-progress-thumb {+ transform: translate3d(-50%, -50%, 0) scale(1);+}+[data-playing='true'] .replay-progress-fill {+ transition: transform 250ms linear;+}+[data-playing='true'] .replay-progress-thumb {+ transition:+ transform 100ms cubic-bezier(0.23, 1, 0.32, 1),+ left 250ms linear;+}+[data-playing='false'] .replay-progress-fill {+ transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1);+}+[data-playing='false'] .replay-progress-thumb {+ transition:+ transform 100ms cubic-bezier(0.23, 1, 0.32, 1),+ left 120ms cubic-bezier(0.23, 1, 0.32, 1);+}/** The visible track, fill and handle are drawn with regular DOM nodes (see* SessionReplayModal). This native range input only provides the hit area,@@ -147,6 +174,10 @@transition-duration: 1ms;transform: none;}+ .replay-progress-fill,+ .replay-progress-thumb {+ transition: none !important;+ }.replay-bezel {animation: none;opacity: 0;