Back in the days of Bootstrap 3, this was the trick:
.modal.fade .modal-dialog {
-webkit-transform: translate3d(0, -25%, 0);
transform: translate3d(0, -25%, 0);
}
Another approach that could have been used:
.modal.fade .modal-dialog {
transform: translate3d(0, -25%, 0);
}
.modal.in .modal-dialog {
transform: translate3d(0, 0, 0);
}
The real magic was in those modal classes with the transform property. However, in the realm of Bootstrap 4, things have changed. I'm currently working with Bootstrap v4.0.0-alpha.5. What adjustments do I need to make to achieve the same effect?
Check out the demo here - https://jsfiddle.net/qww47vfn/