Hey there,
I am playing a bit around with the 404 page.
I have a 404.json and 404-template.lquid file and I want to add this walking man below the text/ image I have.
https://codepen.io/Paolo-Duzioni/pen/zPrqQy
It would be below code.
I tried by copy and paste to add it here and there but I got always an error. I guess I pasted it at the wrong position.
Can you advise? Thank you
// Walking Man
.sleep-walker{
position: relative;
height: 1px;
margin: 5rem 0 3rem;
background-image: repeating-linear-gradient(
to left,
transparent 0,
transparent .12rem,
rgba($black, .15) .125rem,
rgba($black, .15) .25rem
);
}
.man {
position: absolute;
top: -1.4rem;
left: 0;
width: 1px;
height: 2rem;
opacity: .6;
transform: scale(.5);
animation: walking 50s linear infinite;
.head {
position: relative;
width: .5rem;
height: .5rem;
transform: translateX(-1px);
border: 1px solid $black;
border-radius: 50%;
&::before {
content: ‘’;
position: absolute;
top: .28rem;
left: 0;
width: 170%;
height: 1px;
background: $black;
transform-origin: 0% 0%;
transform: rotate(-25deg);
}
}
.torso {
position: relative;
width: 1px;
height: 50%;
margin: 0 auto;
background: $black;
.arm-a, .arm-b{
position: absolute;
top: 10%; left: 0;
width: 100%;
height: 85%;
transform-origin: top center;
background: $black;
&::before {
content: ‘’;
position: absolute;
bottom: -.1rem;
left: 0rem;
width: .18rem;
height: .18rem;
border: 1px solid $black;
border-radius: 50%;
}
}
.arm-a{
transform: rotate(-20deg);
animation: walk1 1.3s linear alternate infinite;
}
.arm-b {
transform: rotate(20deg);
animation: walk2 1.3s linear alternate infinite;
}
}
.legs {
position: relative;
width: 1px;
height: 50%;
margin: 0 auto;
.leg-a, .leg-b{
position: absolute;
top: 0; left: 0;
width: 100%;
height: 100%;
transform-origin: top center;
background: $black;
&::before{
content: ‘’;
position: absolute;
bottom: 0;
left: 0;
width: 4px;
height: 1px;
background: $black;
}
}
.leg-a {
transform: rotate(-20deg);
animation: walk1 1.3s linear alternate infinite;
}
.leg-b {
transform: rotate(20deg);
animation: walk2 1.3s linear alternate infinite;
}
}
}
@keyframes walking {
0%{
left: 0;
transform: scale(.5) rotateY(0deg);
}
49.9%{
transform: scale(.5) rotateY(0deg);
}
50%{
transform: scale(.5) rotateY(180deg);
left: 100%;
}
100%{
transform: scale(.5) rotateY(180deg);
left: 0;
}
}