diff --git a/src/lib/components/OutputToastsContainer.svelte b/src/lib/components/OutputToastsContainer.svelte index 997f3c2..7066dad 100644 --- a/src/lib/components/OutputToastsContainer.svelte +++ b/src/lib/components/OutputToastsContainer.svelte @@ -417,6 +417,7 @@ SPDX-License-Identifier: MPL-2.0
{#if showPager || speedLabel} @@ -549,6 +550,47 @@ SPDX-License-Identifier: MPL-2.0 visibility 0s linear 0s; } + /* Scripted demo only: the rows arrive one after another, top to bottom (timing, + transcript, output), the order a real run produces them, instead of the + whole stack at once. The wrapper shows instantly so each row's own fade is + the only motion. A hover in normal use keeps the single 160ms fade above. */ + .chips-wrap.staggered.visible { + transition: none; + } + + .chips-wrap.staggered.visible > * { + animation: chip-in 220ms cubic-bezier(0.4, 0, 0.2, 1) backwards; + } + + .chips-wrap.staggered.visible > :nth-child(2) { + animation-delay: 130ms; + } + + .chips-wrap.staggered.visible > :nth-child(3) { + animation-delay: 260ms; + } + + .chips-wrap.staggered.visible > :nth-child(n + 4) { + animation-delay: 390ms; + } + + @keyframes chip-in { + from { + opacity: 0; + transform: translate3d(6px, 0, 0); + } + to { + opacity: 1; + transform: translate3d(0, 0, 0); + } + } + + @media (prefers-reduced-motion: reduce) { + .chips-wrap.staggered.visible > * { + animation: none; + } + } + /* Vertically centered on the 128px record button (the area is top-aligned with it). */ .history-indicator { position: absolute; diff --git a/src/lib/services/demoService.ts b/src/lib/services/demoService.ts index 41c2c1c..62b2098 100644 --- a/src/lib/services/demoService.ts +++ b/src/lib/services/demoService.ts @@ -37,7 +37,7 @@ export interface DemoOptions { } /** Canned transcription (the real slogan from the marketing site). */ -export const DEMO_TEXT = 'Save your fingers and type faster - free and unlimited.'; +export const DEMO_TEXT = 'Save your fingers and type faster, free and unlimited.'; /** Defaults shown in the options modal. */ export const DEFAULT_DEMO_OPTIONS: DemoOptions = {