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

137
Views
An element with a .scale class name must have been mouse over. Only the front part works properly. What's the problem?

I worked to increase the scale when hovering over an element with scale class. Only the li at the beginning works properly, I'm curious as to why.

cursorActive() {
  const cursor = document.querySelector(".cursor");
  const cursorLink = document.querySelector(".scale");

  cursorLink.addEventListener('mouseover', function () {
    cursor.style.transform = 'scale(3.2)';
  });

  cursorLink.addEventListener('mouseout', function () {
    cursor.style.transform = 'scale(1)';
  });
}
<li class="list scale"><router-link to="/">A</router-link></li>
<li class="list scale"><router-link to="/contact">B</router-link></li>
<li class="list scale"><router-link to="/Experience">C</router-link></li>
about 4 years ago · Santiago Trujillo
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!