notice.js 介绍
notice.js是一款纯js超酷消息提示框插件。notice.js为纯js编写,没有任何依赖文件。通过它可以在页面上制作出漂亮的toast消息通知框效果。
notice.js特点
支持4中情景类型:error, warning, info, success。
消息框可以显示在9个位置:topLeft,topCenter,middleLeft,middleRight,middleCenter,bottomLeft,bottomright,bottomCenter。
notice.js使用
1、安装或引入
bower install notice.js --save
npm install notice.js --save
或
<link href="dist/noticejs.css" rel="stylesheet" type="text/css">
<script src="dist/noticejs.js"></script>
2、初始化
new NoticeJs({
text: 'Notification message',
position: 'topLeft',
}).show();
可以结合animate.css来为消息通知框添加炫酷的css3动画效果。
网站地址:https://github.com/toolkito/notice.js
GitHub:https://github.com/toolkito/notice.js
notice.js
官方网站:https://github.com/toolkito/notice.js
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。