Skip to content

Instantly share code, notes, and snippets.

@wplit
Last active October 7, 2020 22:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wplit/503913ce86215f839400c24be59330d8 to your computer and use it in GitHub Desktop.
Save wplit/503913ce86215f839400c24be59330d8 to your computer and use it in GitHub Desktop.
Make offcanvas fade instead of slide
.oxy-off-canvas .offcanvas-inner {
-ms-transform: none;
transform: none;
-webkit-transform: none;
visibility: hidden;
opacity: 0;
-webkit-transition: all .5s cubic-bezier(0.77,0,0.175,1);
-o-transition: all .5s cubic-bezier(0.77,0,0.175,1);
transition: all .5s cubic-bezier(0.77,0,0.175,1);
}
.oxy-off-canvas-toggled.oxy-off-canvas .offcanvas-inner {
opacity: 1;
visibility: visible;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment