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

207
Views
restarting animation from current point
<script>
 document.querySelector("body").addEventListener("keydown",venstre);
      function venstre(e)
      {
          if (e.keyCode===37)
          {
              document.querySelector(".bil").style.animation = "venstre 1s linear forwards, venstre 1s" 
              window.setTimeout(kjørvens,0); 
          }
      }
      function kjørvens()
      {
        document.querySelector(".bil").style.animation = "venstre 1s linear forwards";
        
      }

I thought I could make this animation repeat from where it was on every press of left arrow, as in holding it down and having my car move continously. sorry if im formatting my question weird or doing my code in the least usable way

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

0

You could use a css property animation-play-state to pause or resume your animation.

Here is the documentation you should check out: https://developer.mozilla.org/en-US/docs/Web/CSS/animation-play-state

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!