<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>title</title>
<style>
@keyframes fromBottom {
0% {
transform: translateY(100%);
}
100% {
transform: translateY(0%);
}
}
#dialog {
width: 40px;
height: 40px;
border-radius: 50% 50%;
background-color: pink;
position: absolute;
bottom: 50%;
left: 0;
z-index: 10;
/* display: none; */
flex-direction: row;
justify-content: center;
animation: fromBottom 1.5s infinite alternate linear
}
</style>
</head>
<body>
<div id="dialog"></div>
</body>
<script>
</script>
</html>
animation上下弹跳动画
最新推荐文章于 2024-07-09 09:39:15 发布