js消息提示框插件notice.js

所属分类:UI-工具提示,对话框

 26662  225  查看评论 (4)
分享到微信朋友圈
X
js消息提示框插件notice.js ie兼容12

js消息提示框插件notice.js

notice.js是一款纯js超酷消息提示框插件。notice.js为纯js编写,没有任何依赖文件。通过它可以在页面上制作出漂亮的toast消息通知框效果。该js消息提示框插件的特点

  • 支持4中情景类型:errorwarninginfosuccess

  • 消息框可以显示在9个位置:topLeft, topCenter, middleLeft, middleRight, middleCenter, bottomLeft, bottomRight, bottomCenter。

  • 消息框内容支持HTML元素。

可以通过npm或bower来安装notice.js插件。

bower install notice.js --save
npm install notice.js --save

在页面中引入noticejs.css和noticejs.js文件。

<link href="dist/noticejs.css" rel="stylesheet" type="text/css">
<script src="dist/noticejs.js"></script>

初始化插件

notice.js消息提示框插件最基本的用法如下:

new NoticeJs({
   text: 'Notification message',
   position: 'topLeft',
}).show();

你也可以结合animate.css来为消息通知框添加炫酷的CSS3动画效果。

在页面中引入animate.css文件。

<link href="css/animate.css" rel="stylesheet" type="text/css">

然后在配置参数中设置animation参数:

new NoticeJs({
   text: 'Notification message',
   position: 'topLeft',
   animation: {
       open: 'animated bounceInRight',
       close: 'animated bounceOutLeft'
   }
}).show();
相关插件-工具提示,对话框

jquery 工具提示插件awTooltip

awTooltip是一个工具提示插件,用css和jQuery插件创建的。 它可以显示工具提示右,左,顶部或底部的元素。 也可以使用彩色工具提示样式。
  工具提示
 34286  312

jq 提示插件

封装 jq 提示插件 Confirm ,兼容ie811chrome ff
  工具提示
 49986  407

仿win10侧边滑出提示框

一款模拟win10的消息提示框toastr
  工具提示
 32219  375

一款腾讯UED设计的提示插件

一款腾讯UED设计的提示插件
  工具提示
 45980  435

讨论这个项目(4)回答他人问题或分享插件使用方法奖励jQ币 评论用户自律公约

    Chuck 0
    2020/10/15 23:15:30
    不错,好东西,谢谢分享!
    回复
    a'╃下一页的记忆 0
    2020/3/26 12:05:07
    我想知道这个只有success样式啊怎么修改其他样式 回复
    哈喽,早上好 0
    2020/3/14 11:10:16
    不停 0
    2019/8/23 14:26:58
    这东西好哇,ありがとうございます楼主分享 回复
😃
  • 😀
  • 😉
  • 😥
  • 😵
  • 😫
  • 😘
  • 😡
  • 👍
  • 🌹
  • 👏
  • 🍺
  • 🍉
  • 🌙
  • 💖
  • 💔
😃
  • 😀
  • 😉
  • 😥
  • 😵
  • 😫
  • 😘
  • 😡
  • 👍
  • 🌹
  • 👏
  • 🍺
  • 🍉
  • 🌙
  • 💖
  • 💔
取消回复