Skip to content

Instantly share code, notes, and snippets.

@splex7
Created June 29, 2021 03:34
Show Gist options
  • Save splex7/1761d248c40ec6883c8ea5916c576aaa to your computer and use it in GitHub Desktop.
Save splex7/1761d248c40ec6883c8ea5916c576aaa to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/liziyek
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.container {
left: 20px;
outline: 1px aqua solid;
display: inline-block;
overflow: hidden;
}
.flow {
outline: 1px yellow solid;
animation: sign 10s linear infinite;
display:inline-block;
}
@keyframes sign {
0% {
transform: translateX(0);
}
20% {
transform: translateX(0);
}
60% {
transform: translateX(-100%);
}
60.000001% {
transform: translateX(100%);
}
100% {
transform: translateX(0);
}
}
</style>
</head>
<body>
<div class="container">
<div class="flow">
edbera edbera edbera
</div>
</div>
<div class="container">
<div class="flow">
short path
</div>
</div>
<script id="jsbin-source-css" type="text/css">.container {
left: 20px;
outline: 1px aqua solid;
display: inline-block;
overflow: hidden;
}
.flow {
outline: 1px yellow solid;
animation: sign 10s linear infinite;
display:inline-block;
}
@keyframes sign {
0% {
transform: translateX(0);
}
20% {
transform: translateX(0);
}
60% {
transform: translateX(-100%);
}
60.000001% {
transform: translateX(100%);
}
100% {
transform: translateX(0);
}
}</script>
</body>
</html>
.container {
left: 20px;
outline: 1px aqua solid;
display: inline-block;
overflow: hidden;
}
.flow {
outline: 1px yellow solid;
animation: sign 10s linear infinite;
display:inline-block;
}
@keyframes sign {
0% {
transform: translateX(0);
}
20% {
transform: translateX(0);
}
60% {
transform: translateX(-100%);
}
60.000001% {
transform: translateX(100%);
}
100% {
transform: translateX(0);
}
}
@splex7
Copy link
Author

splex7 commented Jun 29, 2021

Marqee animation old style

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment