Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions src/lib/components/OutputToastsContainer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ SPDX-License-Identifier: MPL-2.0
<div
class="chips-wrap flex flex-col gap-1.5 items-end w-full"
class:visible={showChips}
class:staggered={$demoChipsPinned}
inert={!showChips || undefined}
>
{#if showPager || speedLabel}
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/services/demoService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
Loading