Files
Raphael S. 0181755d12 feat(narration): implement audio player with scroll and word highlighting
- Added a new audio player component that supports playback controls, volume adjustment, and playback rate settings.
- Integrated scroll direction detection to show/hide the player based on user scroll behavior.
- Implemented word highlighting functionality that synchronizes with audio playback.
- Created a reading progress component to visually indicate the user's scroll progress on the page.
- Established a global state management system using Zustand for managing audio state and player visibility.

This feature enhances the user experience by providing interactive audio playback and visual feedback during narration.
2026-01-05 11:49:11 +00:00

12 lines
201 B
CSS

.bar {
position: fixed;
top: 0;
left: 0;
z-index: 9999;
width: var(--progress, 0%);
height: 2px;
pointer-events: none;
background: var(--gray-a8);
transition: width 100ms ease-out;
}