Created
July 13, 2017 03:09
-
-
Save eloyesp/3c9cdfbae3a3132b0d032b63c52fbe06 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/mozefozeco
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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