Skip to content

Instantly share code, notes, and snippets.

@wplit
Last active November 6, 2024 03:35
Show Gist options
  • Save wplit/70e81ef9fd922e7c211f2ddd3f591445 to your computer and use it in GitHub Desktop.
Save wplit/70e81ef9fd922e7c211f2ddd3f591445 to your computer and use it in GitHub Desktop.
push whole site to right when offcanvas open.
@wplit
Copy link
Author

wplit commented Nov 6, 2024

CSS..

html:has(.offcanvas_push) {
overflow-x: hidden;
}

.brx-body {
transition: all 0.3s cubic-bezier(0.77,0,0.175,1);
margin: 0;
}

.offcanvas_push {
margin-left: 300px; /* amount you want the page to move from the left */
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment