<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
*{
padding: 0;
margin: 0;
}
body{
width: 100vw;
height: 100vh;
display: grid;
grid-template: 1fr/1fr;
}
.btn{
width: 200px;
height: 50px;
text-align: center;
line-height: 50px;
color:green;
justify-self: center;
align-self: center;
}
.btn::after{
content: '';
width: 3px;
height: 3px;
display: inline-block;
animation-name: yd;
animation-duration: 1s;
animation-iteration-count: infinite;
}
@keyframes yd {
from{
box-shadow: none;
}
30%{
box-shadow: 3px 0 0 currentColor;
}
60%{
box-shadow: 3px 0 0 currentColor,9px 0 0 currentColor;
}
90%{
box-shadow: 3px 0 0 currentColor,9px 0 0 currentColor,15px 0 0 currentColor;
}
to{
box-shadow: 3px 0 0 currentColor,9px 0 0 currentColor,15px 0 0 currentColor;
}
}
</style>
</head>
<body>
<button class="btn">提交</button>
</body>
</html>
css3之animation 提交按钮简单的动画
花开花落的博客2023-08-27 15:57
相关推荐
弄不死的强仔41 分钟前
可被electron等调用的Qt截图-录屏工具【源码开放】霸王蟹1 小时前
el-table组件样式如何二次修改?star010-2 小时前
一文学会HTML编程之视频+图文详解详析star010-2 小时前
【视频+图文详解】HTML基础3-html常用标签无限大.7 小时前
前端知识速记:节流与防抖十八朵郁金香7 小时前
【VUE案例练习】前端vue2+element-ui,后端nodo+express实现‘‘文件上传/删除‘‘功能学问小小谢8 小时前
第26节课:内容安全策略(CSP)—构建安全网页的防御盾LCG元8 小时前
Vue.js组件开发-实现全屏图片文字缩放切换特效还是鼠鼠9 小时前
图书管理系统 Axios 源码__新增图书还是鼠鼠12 小时前
图书管理系统 Axios 源码 __删除图书功能