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

275
Visualizações
jQuery Toggle Class on "a" Link Hover

I have a custom cursor div which changes when hovering over various elements. So far, I have the cursor expanding on hover of .nav-item-wrapper and shrinking on hover of p.

I'm attempting to have the .cursor-div is--link class toggle on hover of all a but running into problems.

The current draft URL

Here is my jQuery inside of the <body>:

<script>

$('.nav-item-wrapper').on('mouseenter mouseleave', function() {
  $(this).toggleClass('is--active');
  $(this).find('.nav-highlight').toggleClass('is--active');
});

/**pointer link hover toggle**/
$('.nav-item-wrapper').not('.w--current').on('mouseenter mouseleave', function() {
  $('.cursor-div').toggleClass('is--link');
});

/** pointer text hover toggle **/
$('p').on('mouseenter mouseleave', function() {
  $('.cursor-div').toggleClass('is--text');
});

</script>

I attempted to add this but it interferes with the .nav-item-wrapper class change.

$('a').on('mouseenter mouseleave', function() {
  $(cursor-div).toggleClass('is--link');;
});
about 4 years ago · Juan Pablo Isaza
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