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

230
Views
How hover an element with JavaScript code?

how i can make an element hover with java script ? (not with mouse)

i mean i want to do an element hover with java script (in x and y) not with mouse , i want to make this with java script code

for example :

const element = document.querySelector("div");

setTimeout( ()=>{
  // heer i need some code to make div hover in x: 80px and y:20px
}, 4000 )
div{
height: 100px;
width:100px;
background-color:red;
}

div:hover{
background-color:blue;
}
<div>

</div>

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!