<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<div class="app-download">
<label id="first-title">Download Our App</label>
<label id="second-title">!Download Now</label>
<i class="fa fa-mobile-phone bounce"></i>
<a class="close-download-app fa fa-close"></a>
</div>
.app-download {
display: flex;
justify-content: space-around;
align-items: center;
direction: rtl;
background-color: #dc1e4d;
top: 0;
position: fixed;
flex-direction: column;
z-index: 100;
left: 2rem;
border-bottom-right-radius: 50%;
border-bottom-left-radius: 50%;
box-shadow: 1px 2px 14px 5px #00000070;
padding: 1rem;
&:focus {
outline: none;
}
label{
margin-top: .5rem;
margin-bottom: .5rem;
color: #fff;
cursor: pointer;
&#first-title {
font-size: 1rem;
}
&#second-title{
font-size:.8rem;
}
}
.fa-mobile-phone {
color: #fff;
font-size: 2.5rem;
width: 45px;
height: 45px;
display: flex;
border: 2px dotted #fff;
align-items: center;
justify-content: center;
border-radius: 50%;
margin: .5rem 0;
cursor: pointer;
}
.close-download-app {
color: #fff;
margin-top: .5rem;
font-size: .7rem;
cursor: pointer;
}
}
.bounce {
animation: bounce 0.5s;
animation-direction: alternate;
animation-timing-function: cubic-bezier(.5, 0.05, 1, .5);
animation-iteration-count: infinite;
animation-name: bounce;
animation-duration: 0.5s;
animation-direction: alternate;
animation-timing-function: cubic-bezier(.5, 0.05, 1, .5);
animation-iteration-count: infinite;
}
@keyframes bounce {
from {
transform: translate3d(0, 0, 0);
}
to {
transform: translate3d(0, 3px, 0);
}
}
@-webkit-keyframes bounce {
from {
transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
to {
transform: translate3d(0, 3px, 0);
transform: translate3d(0, 3px, 0);
}
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.