Skip to content

Instantly share code, notes, and snippets.

@CeramicTitan
Forked from anonymous/index.html
Created May 5, 2016 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CeramicTitan/8146b03e53735607d1fb96c44fac639d to your computer and use it in GitHub Desktop.
Save CeramicTitan/8146b03e53735607d1fb96c44fac639d to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/wubaxumeva
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
div{font-size:150%}
#underline{
border-top: 5px solid black;
animation: slide 2s;
width:310px;
}
@keyframes slide{
from{width:0px;}
to{width:310px;}
}
</style>
</head>
<body>
<div>Hello, this is a sliding underline</div>
<div id="underline"></div>
<script id="jsbin-source-css" type="text/css">div{font-size:150%}
#underline{
border-top: 5px solid black;
animation: slide 2s;
width:310px;
}
@keyframes slide{
from{width:0px;}
to{width:310px;}
}</script>
</body>
</html>
div{font-size:150%}
#underline{
border-top: 5px solid black;
animation: slide 2s;
width:310px;
}
@keyframes slide{
from{width:0px;}
to{width:310px;}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment