Access to this page is restricted
Please check agin later.
@import url('https://fonts.googleapis.com/css?family=Lato');
$animationTime: 2s;
* {
position: relative;
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Lato', sans-serif;
}
body {
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background: linear-gradient(to bottom right, #EEE, #AAA);
}
h1 {
margin: 40px 0 20px;
}
.lock {
border-radius: 5px;
width: 55px;
height: 45px;
background-color: #333;
animation: dip 1s;
animation-delay: ($animationTime - .5);
&::before,
&::after {
content: '';
position: absolute;
border-left: 5px solid #333;
height: 20px;
width: 15px;
left: calc(50% - 12.5px);
}
&::before {
top: -30px;
border: 5px solid #333;
border-bottom-color: transparent;
border-radius: 15px 15px 0 0;
height: 30px;
animation: lock $animationTime, spin $animationTime;
}
&::after {
top: -10px;
border-right: 5px solid transparent;
animation: spin $animationTime;
}
}
@keyframes lock {
0% {
top: -45px;
}
65% {
top: -45px;
}
100% {
top: -30px;
}
}
@keyframes spin {
0% {
transform: scaleX(-1);
left: calc(50% - 30px);
}
65% {
transform: scaleX(1);
left: calc(50% - 12.5px);
}
}
@keyframes dip {
0% {
transform: translateY(0px);
}
50% {
transform: translateY(10px);
}
100% {
transform: translateY(0px);
}
}