Skip to content

Instantly share code, notes, and snippets.

@lek890
Created July 8, 2021 14:10
Show Gist options
  • Save lek890/2b366f7347f10351de368702a5426291 to your computer and use it in GitHub Desktop.
Save lek890/2b366f7347f10351de368702a5426291 to your computer and use it in GitHub Desktop.
medium-seeker
<input
type="range"
value={progress}
step="1"
min="0"
max={duration ? duration : `${duration}`}
className="progress"
onChange={(e) => onSeek(e.target.value)}
onMouseUp={onSeekEnd}
onKeyUp={onSeekEnd}
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment