Last active
May 8, 2018 20:39
-
-
Save githubjeka/b8f13726fc15bbf5ff90 to your computer and use it in GitHub Desktop.
Yii2 Bootstrap modal slide
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Modal::begin( | |
[ | |
'size' => Modal::SIZE_LARGE, | |
'options' => ['class'=>'slide'], | |
] | |
); | |
echo $this->render('view', ['model' => $model]); | |
Modal::end(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
location file ?