Skip to content

Instantly share code, notes, and snippets.

@githubjeka
Last active May 8, 2018 20:39
Show Gist options
  • Save githubjeka/b8f13726fc15bbf5ff90 to your computer and use it in GitHub Desktop.
Save githubjeka/b8f13726fc15bbf5ff90 to your computer and use it in GitHub Desktop.
Yii2 Bootstrap modal slide
<?php
Modal::begin(
[
'size' => Modal::SIZE_LARGE,
'options' => ['class'=>'slide'],
]
);
echo $this->render('view', ['model' => $model]);
Modal::end();
.modal-lg {
width: 80%;
margin: 0 0 0 20%;
border-radius: 0;
}
.modal-lg .modal-content {
border-radius: 0;
}
.modal.slide .modal-dialog {
-webkit-transition: -webkit-transform .3s ease-out;
-o-transition: -o-transform .3s ease-out;
transition: transform .3s ease-out;
-webkit-transform: translate3d(100%, 0, 0);
transform: translate3d(100%, 0, 0);
}
.modal.in .modal-dialog {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
@adimas4
Copy link

adimas4 commented May 8, 2018

location file ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment