Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

214
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda