You do not need to edit the bootstrap-modal.js file . You just need to add the fade class to your modules, and then add some CSS rules.
For instance:
.modal-login.fade { top: -25%; -webkit-transition: opacity 0.3s linear, top 0.3s ease-out; -moz-transition: opacity 0.3s linear, top 0.3s ease-out; -ms-transition: opacity 0.3s linear, top 0.3s ease-out; -o-transition: opacity 0.3s linear, top 0.3s ease-out; transition: opacity 0.3s linear, top 0.3s ease-out; } .modal-login.fade.in { top: 50%; }
It would be even better if you kept a simple modal class on your new one, and just used your new classes to override. This way you can inherit the CSS above without duplicating it.
source share