Skip to content

Instantly share code, notes, and snippets.

@samarth641
Created April 28, 2023 16:56
Show Gist options
  • Save samarth641/0bc66c08dc3f6449e21df0726ad445ab to your computer and use it in GitHub Desktop.
Save samarth641/0bc66c08dc3f6449e21df0726ad445ab to your computer and use it in GitHub Desktop.
CSS uploaded by scrapbook.hackclub.com/customizer
.post {
text-decoration: none;
border: 2px solid #764abc;
color: #764abc;
padding: 10px 20px;
border-radius: 25px;
position: relative;
transition: all 1s;
overflow: hidden;
}
.post::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #764abc;
transition: all 1s;
z-index: -1;
transform: translateX(-100%);
}
.post:hover::before {
transform: translateX(0);
}
.post:hover {
color: #fff;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment