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>