I need to make a smooth twist to the unit on mobile devices, but I do not know how to implement the check. I hope for help. I do it, but it does not work.
$(window).resize(function() { if ($(window) <= "600") { $('.ionTabs__head li').on('click', function() { $('html,body').animate({ scrollTop: $('.content-body').offset().top }, 200); }); } });