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()
});
})
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.