87,910
社区成员
发帖
与我相关
我的任务
分享
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style>
@keyframes titan{
10% {opacity: 1;left:0px; top:0px;}
50%{opacity: 0;left:50px; top:0px;}
100%{opacity: 1;left:0px; top:0px;}
}
#box{
background-color:#0006cf;
width:200px;
height:200px;
margin-left:10px;
font:92px/100px Futura;
letter-spacing:8px;
animation:titan 2s ease-in-out;
position:relative;
}
button{width:80px;
height:30px;
animation-play-state:running;}
</style>
</head>
<body>
<div id="box"></div>
<button></button>
</body>
</html>