Skip to content

Instantly share code, notes, and snippets.

Created August 20, 2016 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/93f8c4d42140cd7c0267a9f74bc7df63 to your computer and use it in GitHub Desktop.
Save anonymous/93f8c4d42140cd7c0267a9f74bc7df63 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/hifasezagi
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.button{
background: #FFF;
border: 2px solid black;
margin: 25px;
padding: 10px 20px 10px 20px;
text-align:center;
cursor: pointer;
font-family: 'OpenSansBold', sans-serif;
font-size: 14px;
font-weight: bold;
box-shadow: inset 0 0 0 0 #31302B;
-webkit-transition: all ease 0.8s;
-moz-transition: all ease 0.8s;
transition: all ease 0.8s;
}
.button:hover{
box-shadow: inset 170px 0 0 0 #31302B;
color:white;
}
</style>
</head>
<body>
<button class="button">Hello</button>
<script id="jsbin-source-css" type="text/css">.button{
background: #FFF;
border: 2px solid black;
margin: 25px;
padding: 10px 20px 10px 20px;
text-align:center;
cursor: pointer;
font-family: 'OpenSansBold', sans-serif;
font-size: 14px;
font-weight: bold;
box-shadow: inset 0 0 0 0 #31302B;
-webkit-transition: all ease 0.8s;
-moz-transition: all ease 0.8s;
transition: all ease 0.8s;
}
.button:hover{
box-shadow: inset 170px 0 0 0 #31302B;
color:white;
}</script>
</body>
</html>
.button{
background: #FFF;
border: 2px solid black;
margin: 25px;
padding: 10px 20px 10px 20px;
text-align:center;
cursor: pointer;
font-family: 'OpenSansBold', sans-serif;
font-size: 14px;
font-weight: bold;
box-shadow: inset 0 0 0 0 #31302B;
-webkit-transition: all ease 0.8s;
-moz-transition: all ease 0.8s;
transition: all ease 0.8s;
}
.button:hover{
box-shadow: inset 170px 0 0 0 #31302B;
color:white;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment