Skip to content

Instantly share code, notes, and snippets.

@eloyesp
Created July 13, 2017 03:09
Show Gist options
  • Save eloyesp/3c9cdfbae3a3132b0d032b63c52fbe06 to your computer and use it in GitHub Desktop.
Save eloyesp/3c9cdfbae3a3132b0d032b63c52fbe06 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/mozefozeco
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
body {
background: hsla(40, 87%, 64%, 0.8);
}
a {
color: black;
text-decoration:none;
padding: 8px;
border-radius: 5px;
position: relative;
transition: all 0.8s ease;
text-transform: uppercase;
background-color: hsla(110, 87%, 64%, 0.1);
}
a:after {
content: ' ';
display: block;
background: hsla(170, 87%, 64%, 0.5);
position: absolute;
bottom: -2px;
left: 0px;
width: 100%;
height: 5px;
transition: all 1s ease;
border-radius: 8px;
}
a:hover:after {
height: 10px;
}
a:hover {
background-color: hsla(130, 87%, 64%, 0.4);
}
</style>
</head>
<body>
<a href="#_">algo</a>
<a href="#_">algo</a>
<a href="#_">algo</a>
<script id="jsbin-source-css" type="text/css">body {
background: hsla(40, 87%, 64%, 0.8);
}
a {
color: black;
text-decoration:none;
padding: 8px;
border-radius: 5px;
position: relative;
transition: all 0.8s ease;
text-transform: uppercase;
background-color: hsla(110, 87%, 64%, 0.1);
}
a:after {
content: ' ';
display: block;
background: hsla(170, 87%, 64%, 0.5);
position: absolute;
bottom: -2px;
left: 0px;
width: 100%;
height: 5px;
transition: all 1s ease;
border-radius: 8px;
}
a:hover:after {
height: 10px;
}
a:hover {
background-color: hsla(130, 87%, 64%, 0.4);
}
</script>
</body>
</html>
body {
background: hsla(40, 87%, 64%, 0.8);
}
a {
color: black;
text-decoration:none;
padding: 8px;
border-radius: 5px;
position: relative;
transition: all 0.8s ease;
text-transform: uppercase;
background-color: hsla(110, 87%, 64%, 0.1);
}
a:after {
content: ' ';
display: block;
background: hsla(170, 87%, 64%, 0.5);
position: absolute;
bottom: -2px;
left: 0px;
width: 100%;
height: 5px;
transition: all 1s ease;
border-radius: 8px;
}
a:hover:after {
height: 10px;
}
a:hover {
background-color: hsla(130, 87%, 64%, 0.4);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment