Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

269 B
Raw Blame
export function scrollTitleOpacity(scrollY: number, revealEnd: number): number {
    'worklet'
    if (revealEnd <= 0) {
        return 0
    }
    const start = Math.max(0, revealEnd - 28)
    return Math.max(0, Math.min(1, (scrollY - start) / (revealEnd - start)))
}