Bootstrap模态消失得太快

时间:2017-05-26 04:14:16

标签: css3 twitter-bootstrap-3 bootstrap-modal

我已经尝试了我能找到的一切,但无济于事。我可以让我自己动画引导模态动画,但调整" out"动画对我不起作用。模态开始动画,然后在不到一秒的时间内消失。

如何更改模态对话框的行为,以便按照我的选择进行动画制作?

以下是我使用过的一些示例代码:



/*Credit: http://hawkee.com/snippet/16154/ - modified by me*/
.modal.fade .modal-dialog {
	-moz-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
	top: 300px;
	opacity: 0;
	transition: all 1.5s;
}

.modal.fade.in .modal-dialog {
	-moz-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
	-webkit-transform: translate3d(0, -250px, 0);
	transform: translate3d(0, -250px, 0);
	opacity: 1;
  transition: all 1.35s;
}




它的效果很好 - 除了消失的行为"。

0 个答案:

没有答案