css+html实现喇叭或者呼吸灯闪烁效果

更新时间:2023-07-28 05:10:59 阅读: 评论:0

css+html实现喇叭或者呼吸灯闪烁效果css+html实现喇叭或者呼吸灯闪烁效果
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;chart=utf-8" />
<title>呼吸灯</title>
<style type="text/css">
/* css代码 */
.breath_light {
opacity: 0.1;
/* 不透明度 */
overflow: hidden;
/* 溢出隐藏 */
animation-name: breath;
/* 动画名称 */
地铁站的英文animation-duration: 700ms;
/* 动画时长3秒 */
animation-timing-function: ea-in-out;
/* 动画速度曲线:以低速开始和结束 */
animation-iteration-count: infinite;
/* 播放次数:⽆限 */
-webkit-animation-name: breath;
/
* 动画名称 */
-webkit-animation-duration: 700ms;
/* 动画时长3秒 */
-webkit-animation-timing-function: ea-in-out;
/* 动画速度曲线:以低速开始和结束 */
-webkit-animation-iteration-count: infinite;冰组词
/* 播放次数:⽆限 */
}
@keyframes breath {
from {
阅读黑板报opacity: 0.1;
}
/* 动画开始时的不透明度 */
50% {
opacity: 1;
}
倚东风/* 动画50% 时的不透明度 */
to {
opacity: 0.1;
}
/* 动画结束时的不透明度 */
数码相机品牌}
熊猫的英文
@-webkit-keyframes breath {
from {
opacity: 0.1;
}
/* 动画开始时的不透明度 */
50% {
opacity: 1;
想象作文怎么写
}
/* 动画50% 时的不透明度 */
to {
to {
opacity: 0.1;
不羁什么意思}
/* 动画结束时的不透明度 */
}
</style>
</head>
<body>
<div title="呼吸灯">
<img class="breath_light" src="./calendar.png" />    </div>
</body>
</html>

本文发布于:2023-07-28 05:10:59,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/89/1099536.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:动画   开始   呼吸   曲线   结束   隐藏   次数   黑板报
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图