SCSS
@import "https://fonts.googleapis.com/css?family=Source+Sans+Pro:600,700";
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
&::before, &::after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
}
a {
color: #FFF;
text-decoration: none;
}
ul {
list-style-type: none;
margin: 0px;
padding-left: 0px;
li {
color: rgba(255, 255, 255, 0.7);
span {
float: right;
margin-top: 9px;
font-size: 13px !important;
border: 2px solid rgba(255, 255, 255, 0.7);
display: inline-block;
text-align: center;
height: 30px;
font-weight: bold;
width: 30px;
line-height: 25px;
border-radius: 15px;
}
}
}
body {
padding: 0px 20px;
margin: 0;
font-family: "Source Sans Pro", sans-serif;
background: #003D74;
-webkit-font-smoothing: antialiased;
}
.close {
outline: none;
background-color: transparent;
color: #fff;
border: 0px;
width: 20px;
height: 20px;
position: absolute;
top: 0;
right: 15px;
cursor: pointer;
opacity: 0;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0s;
transform: translateX(-60px) rotate(90deg);
&.active {
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
opacity: 1;
transform: translateX(0px) rotate(360deg);
}
}
.share {
display: inline-block;
width: 180px;
height: 50px;
overflow: hidden;
line-height: 50px;
border-radius: 25px;
position: relative;
background-color: #038CFE;
transition: width 285ms cubic-bezier(0.4, 0, 0.2, 1) 0.2s, height 325ms cubic-bezier(0.4, 0, 0.2, 1) 0s;
text-align: center;
-webkit-box-shadow: 0px 5px 3px 0px rgba(0, 0, 0, 0.35);
-moz-box-shadow: 0px 5px 3px 0px rgba(0, 0, 0, 0.35);
box-shadow: 0px 5px 3px 0px rgba(0, 0, 0, 0.35);
.toggle {
display: block;
width: 100%;
}
&.active {
width: 350px;
height: 300px;
transition: width 285ms cubic-bezier(0.4, 0, 0.2, 1) 0.1s, height 325ms cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
-webkit-box-shadow: 0px 5px 3px 4px rgba(0, 0, 0, 0.25);
-moz-box-shadow: 0px 5px 3px 4px rgba(0, 0, 0, 0.25);
box-shadow: 0px 5px 3px 4px rgba(0, 0, 0, 0.25);
.content {
opacity: 1;
transform-origin: center center;
height: 250px;
transform: scale(1, 1);
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
.text {
transition-delay: 0.6s;
opacity: 1;
transform: translateY(0px);
height: 100%;
display: flex;
justify-content: center;
align-items: center;
ul {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
.fa {
font-size: 85px;
transition: transform 0.2s;
&:hover {
transform: scale(1.1);
}
}
}
}
}
.toggle span {
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
transform: translateX(-128px);
}
}
span {
text-transform: uppercase;
font-size: 18px;
letter-spacing: 1px;
display: inline-block;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0s;
}
.content {
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0s;
width: 100%;
height: 0px;
padding: 10px 30px;
text-align: left;
position: absolute;
bottom: 0;
left: 0;
opacity: 0;
background-color: #0078f2;
-webkit-transform: scale(1, 0);
transform: scale(1, 0);
border-bottom-left-radius: 25px;
border-bottom-right-radius: 25px;
.text {
transition: 300ms all;
opacity: 0;
transform: translateY(20px);
.sharelink {
transition: 300ms all;
margin-top: 12px;
color: rgba(255, 255, 255, 0.7);
display: block;
text-align: center;
border-radius: 25px;
border: 2px solid rgba(255, 255, 255, 0.7);
&:hover {
border: 2px solid #FFF;
color: #FFF;
}
}
}
}
}
.flex {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}