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

218
Views
how do I make an animations around one character

Is there a way to make animation around a number correspond to the number amount? Like number 5 in this picture:

example model

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

0

Do you mean something like this? Enter a number above 5 for aqua and below 5 for orange.

document.getElementById('applyNum').addEventListener('click', function() {
  document.getElementById('numCon').innerHTML = document.getElementById('numInput').value;

  const v = document.getElementById('numCon').innerHTML;
  if (v >= 5) {
    document.getElementById('numCon').style.borderLeft = '2px solid aqua';
    document.getElementById('numCon').style.borderBottom = '2px solid aqua';
  } else if (v < 5) {
    document.getElementById('numCon').style.borderLeft = '2px solid orange';
    document.getElementById('numCon').style.borderBottom = '2px solid orange';
  }
})
#numCon {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 25%;
  left: 5%;
  width: 50px;
  height: 50px;
  font-size: 5vw;
  border-radius: 50%;
}
<input id='numInput' />
<button id='applyNum'>Apply Number</button>

<div id="numCon"></div>

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!