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

190
Vistas
Making elements roll off and another roll in by clicking a button

I have two elements and I want element1 to roll off and element2 will appear. Afterwhich when the button is clicked again, element2 rolls away to reveal element1 using CSS and/or Javascript.

Please use sample contents for these as I have no Html element sample to upload. Thanks

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

All you have to do is create a class with rolling animation style with the help of transform:translate(x, y) rotate(xdeg); and toggle the class in both element1 and element2 with the help of Jquery on click event.

$('.button').click(function(){
    $('.element1').toggleClass('roll-off');
    $('.element2').toggleClass('roll-off');
});
about 4 years ago · Juan Pablo Isaza Denunciar
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