Scroll to Section
Scroll to a section with a highlight animation to draw attention. Uses a useScrollToSection hook and a ScrollHighlight wrapper.
Live Demo
Click any section button in the navigation bar below. The page scrolls to that section and a ring + glow animation highlights it for 1.5 seconds.
Jump to Section
Click a section to scroll and highlight it
Executive Summary
Q3 2026 Drug Discovery Pipeline Report
This report summarizes the progress of our lead compound RG-7842 through Phase II clinical trials. Key findings indicate a statistically significant improvement in primary endpoints compared to the standard of care, with a manageable safety profile.
Assay Results
In-vitro and in-vivo assay outcomes
Statistical Analysis
Primary and secondary endpoint analysis
Risk Assessment
Identified risks and mitigation strategies
Mitigation: Dose adjustment protocol for concomitant CYP3A4 inhibitors
Mitigation: Prophylactic G-CSF recommended for high-risk patients
Mitigation: Dedicated PK study planned for Phase III
Conclusions
Summary of findings and next steps
Report generated on July 13, 2026. Data cutoff: June 30, 2026. All analyses performed per pre-specified statistical analysis plan (SAP v2.1).
Usage
1. Import the hook
import { useScrollToSection } from "@/lib/use-scroll-to-section";
import { ScrollHighlight } from "@/components/ui/scroll-highlight";2. Register sections and scroll
const { registerRef, scrollTo, highlightedId } = useScrollToSection();
// Wrap each target section
<ScrollHighlight
ref={registerRef("claims")}
highlighted={highlightedId === "claims"}
>
<Card>...</Card>
</ScrollHighlight>
// Trigger scroll from anywhere
<Button onClick={() => scrollTo("claims")}>
Go to Claims
</Button>Options
Hook options
useScrollToSection({
offset: 80, // px from top (default: 80)
behavior: "smooth", // scroll behavior (default: "smooth")
highlightDuration: 1500 // ms (default: 1500)
})Highlight animation
The highlight uses a ring-2 ring-primary/60 border with a highlight-pulse keyframe that fades a glow shadow from visible to transparent over 1.5s.
Components Used
useScrollToSectionScrollHighlight@cs-coe/card@cs-coe/button@cs-coe/badge