Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

223
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda