Skip to content

Instantly share code, notes, and snippets.

@krazy-glue
Created March 4, 2022 18:46
Show Gist options
  • Select an option

  • Save krazy-glue/be73d475bc585e48b6e14db0a3519fd3 to your computer and use it in GitHub Desktop.

Select an option

Save krazy-glue/be73d475bc585e48b6e14db0a3519fd3 to your computer and use it in GitHub Desktop.
403 Forbidden
<div class="lock"></div>
<div class="message">
<h1>Access to this page is restricted</h1>
<p>Please check with the site admin if you believe this is a mistake.</p>
</div>
@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);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment