Portfolio Modal, example: http://ironsummitmedia.github.io/startbootstrap-freelancer/
Eu quero modificar a animação do Portfolio Modal (bootstrap).
Eu quero que ele apareça da esquerda para direita semelhante a isso: http://jsfiddle.net/gtw7375/o9jd3v6n/
Como posso fazer isso?
HTML:
<li><a href="#portfolioModal1" class="portfolio-link" data-toggle="modal"> OPEN FROM LEFT TO CENTER</a></li>
<div class="portfolio-modal modal fade" style="position: fixed" id="portfolioModal1" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-content"><div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<div class="modal-body">
<h2>Project Title</h2>
<p>
Content
</p>
<button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times"></i> Close</button>
</div>
</div>
</div>
</div>
</div>
</div>
CSS:
/* Container (white background) where are the modal information. Only decreases the width of it so that it fits in the animation I want. */
.portfolio2-modal .modal2-content {
padding: 100px 0;
min-height: 100%;
width: 78%;border: 0;
border-radius: 0;
text-align: center;
background-clip: border-box;
-webkit-box-shadow: none;
box-shadow: none;
}
CONSEGUI! Modifiquei diretamente no Bootstrap:
.modal.fade .modal-dialog {
-webkit-transition: -webkit-transform .3s ease-out;
-o-transition: -o-transform .3s ease-out;
transition: transform .3s ease-out;
-webkit-transform: translate(-25%, 0);
-ms-transform: translate(-25%, 0);
-o-transform: translate(-25%, 0);
transform: translate(-25%, 0);