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

222
Visualizações
How to scroll to section with vue-smooth-scrollbar?

I'm creating a portfolio with nuxt.js and i'm using a node module which is vue-smooth-scrollbar to have a smooth scroll in my page content.

The problem is I don't know how to scroll to a specific element in my scrolling content because it is implementing a new way of scrolling with a translate3D.

Does anyone know if there is a function to this package so I can scroll to a specific container with an anchor?

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

0

The package you're talking about is 6 months old with no documentation and it's more aimed towards the actual smoothness of the scrollbars.

My answer here is about how to scroll to a specific element in your page. This is also just 2kB so good enough.

This being usable anywhere on the page

VueScrollTo.scrollTo(this.$refs.regForm, 1000, { easing: 'linear' })

You can of course also scroll to a hash.


Otherwise, smooth scroll is also available in JS vanilla.

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