Skip to content

Instantly share code, notes, and snippets.

@wplit
Created June 7, 2020 04:08
Show Gist options
  • Select an option

  • Save wplit/98a2c685a6b21eb99a8d00e7b8926668 to your computer and use it in GitHub Desktop.

Select an option

Save wplit/98a2c685a6b21eb99a8d00e7b8926668 to your computer and use it in GitHub Desktop.
close offcanvas
jQuery('body').removeClass('off-canvas-toggled'); // remove the overflow hidden
jQuery('.oxy-off-canvas').removeClass('oxy-off-canvas-toggled'); // close the offcanvas
jQuery(jQuery('.offcanvas-inner').data('trigger-selector')).find('.hamburger').removeClass('is-active'); // if the trigger is burger, close it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment