Skip to content

Instantly share code, notes, and snippets.

@lolmaus
Created June 24, 2020 15:58
Show Gist options
  • Save lolmaus/474a2f9c407be2c9f2f3e38093686151 to your computer and use it in GitHub Desktop.
Save lolmaus/474a2f9c407be2c9f2f3e38093686151 to your computer and use it in GitHub Desktop.
// source http://jsbin.com
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
@keyframes move {
0% {
transform: translateX(0);
}
100% {
transform: translateX(690px);
}
}
img {
animation: move 1s linear;
animation-iteration-count:infinite;
}
</style>
</head>
<body>
<img src="https://i.imgur.com/fvIQZqg.png" width="108">
<script id="jsbin-source-css" type="text/css">@keyframes move {
0% {
transform: translateX(0);
}
100% {
transform: translateX(690px);
}
}
img {
animation: move 1s linear;
animation-iteration-count:infinite;
}</script>
</body>
</html>
@keyframes move {
0% {
transform: translateX(0);
}
100% {
transform: translateX(690px);
}
}
img {
animation: move 1s linear;
animation-iteration-count:infinite;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment