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

134
Views
edit CSS animation duration with JS

How could I change the duration of flipHeads from 3s to 0s using pure Javascript?

CSS:

.animate-Heads{
  animation: flipHeads 3s;
  animation-fill-mode: forwards;
}

Any help is greatly appreciated

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

0

You can try

 const animateHeads = document.getElementsByClassName('animate-Heads')

 /*animateHeads is now an array which contains elements that have 'animate-Heads' as class name , saying you want to change the duration of the first element */

 animateHeads[0].style.animationDuration = '0s'
about 4 years ago · Juan Pablo Isaza Report

0

Im not fan on inline css so i would add class to element. document.querySelector('.animate-Heads').classList.add('remove-duration')

.animate-Heads.remove-duration{ animation-duration: 0s; }

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!