HTML 공 튕기기

Posted by PeEn
2019. 10. 31. 11:46 Programing/Web Programming
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<style>
   
@keyframes bounce
        {
         from, to{
	bottom:0px;
	animation-timing-function:ease-out;
	}
	50%{
	bottom:200px;
	animation-timing-function:ease-in;
	}
       }
	#ball{
	position: absolute;
	width:20px;
	height:20px;
	background:red;
	border-radius:10px;
	animation-name: bounce;
	animation-iteration-count: infinite;
	animation-duration: 5s;
	}
	</style>
</head>
	
<body>
<div id="ball"></div>
</body>
</html>