Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

320
Visualizações
Scroll to top of page before Link route change in NextJS

When I click a link to a new page the page loads and then scrolls to the top of the page. I'd like to change this behavior that the scroll resets to the top of the page before the route change is rendered. You can see the behavior at https://mitconsulting.group/ if you scroll down on the home page and then use the navbar to navigate to a new page without scrolling back up, the new page renders and then scrolls to the top. This messes up my fade-in scroll animations and generally looks bad.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

If you are using react-bootstrap, like I was, you'll need to override the scroll-behavior: smooth; with scroll-behavior: auto !important;

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda