日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

css实现简单的告警提示动画效果

發布時間:2023/12/2 编程问答 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 css实现简单的告警提示动画效果 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

需求:css實現簡單的告警提示動畫效果,當接收到實時信息的時候,頁面彈出告警信息的動畫效果

<!DOCTYPE html> <html lang="en"><head><meta charset="UTF-8"><title>css實現告警提示動畫</title><script src="http://code.jquery.com/jquery-1.8.0.min.js"></script><style>.container {width: 200px;height: 200px;border:1px solid #CCCCCC;position: absolute;left: 40%;top: 40%;}.delete{text-align: right;margin-right: 4px;}.type {text-align: center;}.ico {position: absolute;left: 20%;top: 29%;width: 120px;height: 120px;background: url(img/211.png) no-repeat center;background-size: 100%;}/*動畫*/.ico {-webkit-animation: Tada 1s 2s both infinite;-moz-animation: Tada 1s 2s both infinite;-ms-animation: Tada 1s 2s both infinite;animation: Tada 1s 2s both infinite;}/*瀏覽器兼容性部分略過*/@keyframes Tada {0% {transform: scale(1);transform: scale(1)}10%,20% {transform: scale(0.9) rotate(-3deg);transform: scale(0.9) rotate(-3deg)}30%,50%,70%,90% {transform: scale(1.1) rotate(3deg);transform: scale(1.1) rotate(3deg)}40%,60%,80% {transform: scale(1.1) rotate(-3deg);transform: scale(1.1) rotate(-3deg)}100% {transform: scale(1) rotate(0);transform: scale(1) rotate(0)}}</style></head><body><div class="container"><div class="delete"><img src="img/delete.png"></div><div class="type">健康報警 </div><div class="ico"></div></div></body><script>$(".delete").on("click",function(){$('.container').hide();}); </script></html>

效果如下:



注:

原文作者:祈澈姑娘技術博客:https://www.jianshu.com/u/05f416aefbe1
90后前端妹子,愛編程,愛運營,愛折騰。
堅持總結工作中遇到的技術問題,堅持記錄工作中所所思所見,歡迎大家一起探討交流。

關注「編程微刊」公眾號 ,在微信后臺回復「領取資源」,獲取IT資源300G干貨大全。

公眾號回復“1”,拉你進程序員技術討論群.

轉載于:https://www.cnblogs.com/ting6/p/9726101.html

總結

以上是生活随笔為你收集整理的css实现简单的告警提示动画效果的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。