[英]Toaster for angularjs options, how to
I have a toaster which i would like to do several configs on it without success, first of all, i want to show it fast like in here: (show duration?) 我有一个烤面包机,我想对其进行几个配置而没有成功,首先,我想像这里一样快速显示它:(显示持续时间?)
http://codeseven.github.io/toastr/demo.html
But i don't find the option that will do that, it's very slow like in here: 但是我找不到能做到这一点的选项,它的速度非常慢,就像这里:
http://plnkr.co/edit/mVR4P4?p=preview
second of all, i want it not to be blury like the former, but i want it to be like the latter (no opacity), 第二,我希望它不像前者那样模糊,但我希望它像后者(不透明),
How do i do that? 我怎么做?
You can set that in css please see here http://plnkr.co/edit/63eCUz?p=preview 您可以在CSS中进行设置,请参见此处http://plnkr.co/edit/63eCUz?p=preview
Q1: Q1:
transition: 100ms <- just adjust transaction duration
Q2: Q2:
.animateToaster-enter.animateToaster-enter-active,
.animateToaster-leave {
opacity: 1; <-set that to 1 instead of 0.8
}
Sample CSS Code: 示例CSS代码:
/*Animation CSS3*/
.animateToaster-enter,
.animateToaster-leave
{
-webkit-transition: 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all;
-moz-transition: 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all;
-ms-transition: 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all;
-o-transition: 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all;
transition: 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all;
}
.animateToaster-enter.animateToaster-enter-active,
.animateToaster-leave {
opacity: 1;
}
.animateToaster-leave.animateToaster-leave-active,
.animateToaster-enter {
opacity: 0;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.