Skip to content

Instantly share code, notes, and snippets.

@Renik07
Last active September 16, 2021 20:30
Show Gist options
  • Save Renik07/f3ee086bd334a85e825020ee320187d1 to your computer and use it in GitHub Desktop.
Save Renik07/f3ee086bd334a85e825020ee320187d1 to your computer and use it in GitHub Desktop.
CodePen Home Button with border-radius and gradient
.btn {
display: flex;
justify-content: center;
align-items: center;
width: 300px;
height: 50px;
text-transform: uppercase;
text-decoration: none;
padding: 10px;
color: #000;
font-size: 25px;
background:
linear-gradient(#fff, #fff) padding-box,
linear-gradient(90deg, rgba(131,58,180,1) 0%, rgba(253,29,29,1) 50%, rgba(252,176,69,1) 100%) border-box;
border: 5px solid transparent;
border-radius: 10px;
transition: all 0.3s;
}
.btn:hover {
color: #fff;
background: linear-gradient(90deg, rgba(131,58,180,1) 0%, rgba(253,29,29,1) 50%, rgba(252,176,69,1) 100%) border-box;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment