【问题标题】:Toaster for angularjs options, how to用于 angularjs 选项的烤面包机,如何
【发布时间】:2014-09-16 07:35:10
【问题描述】:

我有一个烤面包机,我想在它上面做几个配置但没有成功,首先,我想在这里快速显示它:(显示持续时间?)

http://codeseven.github.io/toastr/demo.html

但我没有找到可以做到这一点的选项,就像这里一样很慢:

http://plnkr.co/edit/mVR4P4?p=preview

其次,我希望它不像前者那样模糊,但我希望它像后者一样(没有不透明度),

我该怎么做?

【问题讨论】:

    标签: angularjs toastr


    【解决方案1】:

    你可以在 css 中设置,请看这里http://plnkr.co/edit/63eCUz?p=preview

    第一季度:

    transition: 100ms <- just adjust transaction duration
    

    第二季度:

    .animateToaster-enter.animateToaster-enter-active, 
    .animateToaster-leave {
        opacity: 1; <-set that to 1 instead of 0.8
    }
    

    示例 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;
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-02-26
      • 1970-01-01
      • 1970-01-01
      • 2022-07-29
      • 1970-01-01
      相关资源
      最近更新 更多