coldbydefault-portfolio
    Preparing search index...

    Function useReadingProgress

    • Reading progress (0..1) through the element with bodyId, and the id of the last heading that has scrolled past the top 30% of the viewport.

      Parameters

      • bodyId: string
      • headingIds: string[]

      Returns { activeId: string; progress: number }