-
-
Save takahashi-h5/599afb4be5ede521bf539a7d9a88ff44 to your computer and use it in GitHub Desktop.
gistデビュー
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<head> | |
<meta charset="utf-8" /> | |
<link rel="stylesheet" type="text/css" href="sample28.css"> | |
<title>サンプル</title> | |
</head> | |
<body> | |
<ul> | |
<li></li> | |
<li></li> | |
<li></li> | |
</ul> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
background: #00CCFF; | |
} | |
@-webkit-keyframes square { | |
0% { transform: translateY(0); } | |
100% { transform: translateY(700px);} | |
} | |
@keyframes square { | |
0% { transform: translateY(0); } | |
100% { transform: translateY(700px);} | |
} | |
li{ | |
position: absolute; | |
list-style: none; | |
-webkit-animation: square 10s infinite; | |
animation: square 10s infinite; | |
} | |
li:nth-child(1){ | |
left: 30%; | |
width: 80px; | |
height: 80px; | |
background:black; | |
animation-duration: 3s; | |
} | |
li:nth-child(2){ | |
left: 50%; | |
width: 80px; | |
height: 80px; | |
background:black; | |
animation-delay: 6s; | |
} | |
li:nth-child(3){ | |
left: 70%; | |
width: 80px; | |
height: 80px; | |
background:gray; | |
animation-duration: 6s; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment