, , , , jQuery 3.2, : none, jQuery , slideUp(), slideToggle() ..
, : flex CCS, : , , - :
$('.element').css('display', 'none');
, slideDown() .., .
, , if ,
if( $(window).width() < 600){
$('.element').css('display', 'none');
}
This has the potential drawback of an element that is displayed briefly until the page finishes loading, but if you want the element to be shown later, I would not think that this would be a big problem. You can also use something like slideUp () to hide the element first so that it animates well.
source
share