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

100
Views
Rotation in Javascript

I want to make a button in JavaScript that rotates 90 degrees when the method is clicked. what should I do? I wanted to do this with css but it didn't work. Please tell me how to do this with JS? (I know I'm very noob:/)

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Try this for rotation

document.querySelector("#img").style.transform = "rotate(90deg)";

about 4 years ago · Juan Pablo Isaza Report

0

document.getElementById("myDIV").style.transform = "rotate(7deg)";

about 4 years ago · Juan Pablo Isaza Report
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!