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

184
Views
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 answers
Answer question

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 Report
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!