Skip to content

Instantly share code, notes, and snippets.

@CrazyBoy49z
Forked from vgrish/modal.css
Created September 17, 2018 00:30
Show Gist options
  • Save CrazyBoy49z/023ee2c48dc510fab5a144fbb944e66c to your computer and use it in GitHub Desktop.
Save CrazyBoy49z/023ee2c48dc510fab5a144fbb944e66c to your computer and use it in GitHub Desktop.
.modal {
/*! adjust transition time */
-webkit-transition: all ease-out !important;
-moz-transition: all 0.3s ease-out !important;
-o-transition: all 0.3s ease-out !important;
transition: all 0.3s ease-out !important;
}
.modal.in .modal-dialog {
/*! editthis transform to any transform you want */
-webkit-transform: scale(1, 1) !important;
-ms-transform: scale(1, 1) !important;
transform: scale(1, 1) !important;
}
.modal.fade .modal-dialog {
/*! disable sliding from left/right/top/bottom */
-webkit-transform: translate(0, 0);
-ms-transform: translate(0, 0);
transform: translate(0, 0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment