实现网页下方常见下滑提示的箭头浮动
如图:
<!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>
<style type="text/css">
div {
font-size: 72px;
font-weight: bolder;
width: 40px;
height: 40px;
right: 0;
left: 0;
bottom: 50px;
margin: auto;
position: fixed;
transform: rotate(90deg);
-webkit-animation: Jiantou 1s ease-in-out 500ms infinite alternate;
animation: Jiantou 1s ease-in-out 500ms infinite alternate;
}
@keyframes Jiantou {
from {
top: 95%;
}
to {
top: 97%;
}
}
</style>
</head>
<body>
<div>></div>
</body>
</html>