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

217
Views
rotate the text inside the span element

I have plan to make a simple animation inside the webpage for demonstrate the motor rpm . the span element look like this

 <span id="motor"  style='font-size:100px;padding: 3%;'>&#8854;</span>

and my range slider for change the speed is

<input type="range" min="0" max="100" value="0" class="slider" id="Range0" step="5" onchange="changeSpeed(this.value);"   > 

I add the button which set the new speed for motor and its function is

 function changeSpeed(speed){
    
    setInterval( rotate_fan ,speed );  

     
 }
 
 function rotate_fan(){
var  div = document.getElementById('motor');
        deg0=deg0+direction0*10;
    div.style.webkitTransform = 'rotate('+deg0+'deg)'; 
    div.style.mozTransform    = 'rotate('+deg0+'deg)'; 
    div.style.msTransform     = 'rotate('+deg0+'deg)'; 
    div.style.oTransform      = 'rotate('+deg0+'deg)'; 
    div.style.transform       = 'rotate('+deg0+'deg)';
    
 }

but I didn't see any change any tips really appreciated

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!