Skip to content

Instantly share code, notes, and snippets.

@magnucki
Created December 19, 2019 15:55
Show Gist options
  • Select an option

  • Save magnucki/0e6d155e2a94fd7e099ee06fd4bfe45f to your computer and use it in GitHub Desktop.

Select an option

Save magnucki/0e6d155e2a94fd7e099ee06fd4bfe45f to your computer and use it in GitHub Desktop.
@import 'https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300';
html,
body {
width: 100%;
height: 100%;
overflow: hidden;
margin: 0;
display: flex;
flex-direction: column;
flex-wrap: wrap;
font-family: 'Open Sans Condensed', sans-serif;
}
div[class*=box] {
height: 100%;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.box-2 { background-color: #FFFFF; }
.btn {
line-height: 50px;
height: 200px;
text-align: center;
width: 200px;
cursor: pointer;
}
/*
========================
BUTTON TWO
========================
*/
.btn-two {
color: #FFF;
transition: all 0.5s;
position: relative;
}
.btn-two span {
z-index: 3;
display: block;
position: absolute;
width: 100%;
height: 100%;
}
.btn-two::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
transition: all 0.5s;
border: 1px solid rgba(255,255,255,0.2);
background-color: rgba(13,32,38,0.9);
}
.btn-two::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
transition: all 0.5s;
border: 1px solid rgba(255,255,255,0.2);
background-color: rgba(13,32,38,0.9);
}
.btn-two:hover::before {
transform: rotate(-8deg);
background-color: rgba(247,168,35,1);
}
.btn-two:hover::after {
transform: rotate(0deg);
background-color: rgba(13,32,38,0.9);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment