微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

notice.js

编程之家收集整理的这个编程导航主要介绍了notice.js编程之家,现在分享给大家,也给大家做个参考。

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。

消息框内容支持html元素。

 

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

网站描述:一款纯js超酷消息提示插件

notice.js

官方网站:https://github.com/toolkito/notice.js

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。