After some digging about, I managed to find out that I could modify the transitions for Bootstrap modals with the following selector — .modal.fade .modal-dialog
I've managed to set it so that the slide effect is removed, leaving only the fade in.
But now I'm trying to slow the transition down a little bit. I've tried adding the transition-duration
property and changing it to 5 seconds, but with no luck. The modal still fades in very fast:
.modal.fade .modal-dialog {
-webkit-transition: -webkit-transform .5s ease-out;
-o-transition: -o-transform .5s ease-out;
transition: transform .5s ease-out;
-webkit-transform: translate(0, 0);
-ms-transform: translate(0, 0);
-o-transform: translate(0, 0);
transform: translate(0, 0);
transition-duration: 5;
}
Can anyone see what I'm doing wrong?