Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

282
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!