Skip to content

Instantly share code, notes, and snippets.

@GGrassiant
Created January 8, 2022 22:38
Show Gist options
  • Save GGrassiant/b775e76a73e9cfd2af61e62bbf0b4a10 to your computer and use it in GitHub Desktop.
Save GGrassiant/b775e76a73e9cfd2af61e62bbf0b4a10 to your computer and use it in GitHub Desktop.
Howire Hover Button
.button {
transition: font-weight 0.1s ease, clip-path 0.2s ease, background-color 0.2s ease;
display: inline-block;
padding: 1em 1.5em;
color: #000;
font-family: "Jost",sans-serif;
text-decoration: none;
text-align: center;
line-height: normal;
-webkit-appearance: none;
background-color: #5cd8e5;
border: 0;
box-shadow: none;
clip-path: polygon(5% 10%, 46% 1%, 46% 10%, 100% 0, 95% 90%, 31% 100%, 31% 90%, 0% 100%);
font-weight: 550;
}
@media (hover: hover)
.button:hover {
color: #000;
background-color: #ffe801;
cursor: pointer;
text-decoration: none;
font-weight: 800;
clip-path: polygon(5% 10%, 66% 1%, 66% 10%, 100% 0, 95% 90%, 51% 100%, 51% 90%, 0% 100%);
}
<a class="button" href="/handbook/drive">Next: Navigate with Turbo Drive</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment