代码拉取完成,页面将自动刷新
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Notification Styles Inspiration | Other Wiper</title>
<meta name="description" content="Various styles and effects for unobtrusive notifications on a website" />
<meta name="keywords" content="notification, inspiration, style, effect, growl, javascript" />
<meta name="author" content="Codrops" />
<link rel="shortcut icon" href="../favicon.ico">
<link href="http://fonts.googleapis.com/css?family=Raleway:400,300,700" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="css/normalize.css" />
<link rel="stylesheet" type="text/css" href="css/demo.css" />
<link rel="stylesheet" type="text/css" href="css/ns-default.css" />
<link rel="stylesheet" type="text/css" href="css/ns-style-other.css" />
<script src="js/modernizr.custom.js"></script>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body class="color-3">
<div class="notification-shape shape-progress" id="notification-shape">
<svg width="70px" height="70px"><path d="m35,2.5c17.955803,0 32.5,14.544199 32.5,32.5c0,17.955803 -14.544197,32.5 -32.5,32.5c-17.955803,0 -32.5,-14.544197 -32.5,-32.5c0,-17.955801 14.544197,-32.5 32.5,-32.5z"/></svg>
</div>
<div class="container">
<!-- Top Navigation -->
<div class="codrops-top clearfix">
<a class="codrops-icon codrops-icon-prev" href="http://tympanus.net/Development/SelectInspiration/"><span>Previous Demo</span></a>
<a class="codrops-icon codrops-icon-drop" href="http://tympanus.net/codrops/?p=19415"><span>Back to the Codrops Article</span></a>
</div>
<header class="codrops-header">
<h1>Notification Styles Inspiration <span>Simple ideas & effects for website notifications</span></h1>
</header>
<div class="main clearfix">
<div class="column">
<p class="small">Click on the button to show the notification:</p>
<button id="notification-trigger" class="progress-button">
<span class="content">Show Notification</span>
<span class="progress"></span>
</button>
</div>
<div class="column">
<nav class="codrops-demos">
<h3>Growl-like</h3>
<div>
<a href="index.html">Scale</a>
<a href="growl-jelly.html">Jelly</a>
<a href="growl-slide.html">Slide in</a>
<a href="growl-genie.html">Genie</a>
</div>
<h3>Attached</h3>
<div>
<a href="attached-flip.html">Flip</a>
<a href="attached-bouncyflip.html">Bouncy Flip</a>
</div>
<h3>Top Bar</h3>
<div>
<a href="bar-slidetop.html">Slide On Top</a>
<a href="bar-exploader.html">Expanding Loader</a>
</div>
<h3>Other</h3>
<div>
<a href="other-cornerexpand.html">Corner Expand</a>
<a class="current-demo" href="other-loadingcircle.html">Loading Circle</a>
<a href="other-boxspinner.html">Box Spinner</a>
<a href="other-thumbslider.html">Thumb Slider</a>
</div>
</nav>
</div>
</div>
<!-- Related demos -->
<section class="related">
<p>If you enjoyed this demo you might also like:</p>
<a href="http://tympanus.net/Development/ProgressButtonStyles/">
<img src="http://tympanus.net/codrops/wp-content/uploads/2013/12/ProgressButtonStyles-300x162.png" />
<h3>Progress Button Styles</h3>
</a>
<a href="http://tympanus.net/Development/CreativeLoadingEffects/">
<img src="http://tympanus.net/codrops/wp-content/uploads/2013/09/CreativeLoadingEffects-300x162.png" />
<h3>Creative Loading Effects</h3>
</a>
</section>
</div><!-- /container -->
<script src="js/classie.js"></script>
<script src="js/notificationFx.js"></script>
<script>
(function() {
var svgshape = document.getElementById( 'notification-shape' ),
bttn = document.getElementById( 'notification-trigger' );
// make sure..
bttn.disabled = false;
bttn.addEventListener( 'click', function() {
// create the notification
var notification = new NotificationFx({
wrapper : svgshape,
message : '<p>Whatever you did, it was successful!</p>',
layout : 'other',
effect : 'loadingcircle',
ttl : 9000,
type : 'notice', // notice, warning or error
onClose : function() {
bttn.disabled = false;
}
});
// show the notification
notification.show();
// disable the button (for demo purposes only)
this.disabled = true;
} );
})();
</script>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。