Skip to content

Instantly share code, notes, and snippets.

Last active February 8, 2022 22:52
What would you like to do?
open offcanvas after page load and after delay
jQuery(document).ready(function($) {
let offCanvas = '.my-offcanvas'; // Change to your offcanvas selector (class or ID)
let delay = 1000; // Number of ms to wait before opening offcanvas
/* Add the classes to open the offcanvas */
}, delay);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment