| 1 |
<html> |
| 2 |
<style> |
| 3 |
.play { |
| 4 |
animation: move 1s forwards infinite; |
| 5 |
} |
| 6 |
|
| 7 |
@keyframes move { |
| 8 |
from { |
| 9 |
margin: 0; |
| 10 |
} |
| 11 |
to { |
| 12 |
margin: 1000px 0 0 1000px; |
| 13 |
} |
| 14 |
} |
| 15 |
</style> |
| 16 |
<body> |
| 17 |
<button class="play">click</button> |
| 18 |
</body> |
| 19 |
</html> |