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

186
Vistas
How to make div open/close slow?

once again in a pickle. I have this js that I would like to when open and close it does it slow. As it is, it just snaps open and close. I tried SlideUp, slideDown, slow but it's always the wrong placement. Much appreciated. Ty.

The button:

<div class="open_child" title="', $txt['sub_boards2'], '"><i class="fas fa-plus-circle"></i></div>

js:

      $("document").ready(function () {
        $(".manualclose").click(function(){
        $(".child_box").toggle();
          });

      ls = localStorage.getItem('on')
      if(ls){
        $(".child_box").show()
      }

      $(".open_child").click(function(){
          localStorage.setItem('on',true)
          toggled = $(".child_box").toggle();
          if(toggled.is(":hidden")){
            localStorage.clear();
          }
      });
      $(".manualclose").click(function(){
        localStorage.clear();
        $(".child_box").hide()

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

0

Both .show() and .hide() will take a duration parameter that will fade in or out the target over that number of milliseconds.

E.g.

$( ".target" ).show(500);

There are lots of other things you can do, too. Take a look at the jQuery reference manual for details.

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