my navigation no longer works. Can someone help me, that the code work with the new jquery library in wordpress?
The problem must be "toggle" - but I don't know how to replace it.
(function($) {
$('#toggle').toggle(
function() {
$('#popout').animate({ left: 0 }, 'slow', function() {
$('#toggle').html('<span class="mi4"><i class="fa fa-times fa2" aria-hidden="true"></i></span>');
});
},
function() {
$('#popout').animate({ left: -255 }, 'slow', function() {
$('#toggle').html('<span class="mi4"><i class="fa fa-bars fa2" aria-hidden="true"></i></span>');
});
}
);
})(jQuery);