我想有淡入和淡出,当这个通知信息将取代。
我仍然使用相同的源代码,但我仍然无法检索淡入和正面的效果。
为了达到这个目标,我遗漏了什么部分?
谢谢!
更多信息可在http://bootstrap-notify.remabledesigns.com/上阅读。
jsfiddle和jsbin中的源代码相同,但它只在jsbin中工作。
https://jsfiddle.net/qenn83yg/ http://jsbin.com/cofigosute/edit?html,js,output
$.notify({
title: "Welcome:",
message: "This plugin has been provided to you by Robert McIntosh aka mouse0270"
});<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-notify/0.2.0/css/bootstrap-notify.min.css" rel="stylesheet" type="text/css" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-notify/0.2.0/css/bootstrap-notify.min.css" rel="stylesheet" type="text/css" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-notify/0.2.0/css/styles/alert-blackgloss.min.css" rel="stylesheet" type="text/css" />
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js"></script>
<script src="http://bootstrap-notify.remabledesigns.com/js/bootstrap-notify.min.js"></script>
</body>
</html>
发布于 2017-08-01 08:54:06
尝试这段代码
添加animate.css
https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.css
修改码
$.notify({
title: "Welcome:",
message: "This plugin has been provided to you by Robert McIntosh aka mouse0270",
animate: {
enter: 'animated fadeInDown',
exit: 'animated fadeOutUp'
}
});演示
https://stackoverflow.com/questions/45432881
复制相似问题