AWN 基本使用awesome-notifications

https://f3oall.github.io/awesome-notifications/docs/ 這是一套非常好用而簡單的 notification套件

<link href="awn/style.css" rel="stylesheet" type="text/css" />
<script src="awn/index.var.js"></script>

<script>
//全局設定
let globalOptions =  {
    animationDuration:300,  //動畫效果時長,數字越小動作越快
    durations: {
        success: 1000  //顯示時長,可針對success做
    },
}
let notifier = new AWN(globalOptions);
</script>
notifier.success('Your content has been updated.', {
    durations: {
        success: 3000 // 單獨設定為3秒,會取代你全局的設定
    }
});