body {
background-color: #fefefe;
display: grid;
grid-template-columns: repeat(2, 1fr);
height: 100vh;
align-items: center;
/* justify-content: center; */
}
.loading {
width: fit-content;
font-size: 30px;
font-weight: bold;
padding-bottom: 5px;
background: linear-gradient(currentColor) 0 100% / 0 3px no-repeat;
animation: decoration 2s infinite linear;
}
.loading::before {
content: 'Loading...'
}
@keyframes decoration {
to {
background-size: 100% 3px;
}
}
div {
justify-self: center;
}
.background {
width: 100px;
height: 50px;
box-shadow: 2px 0px 10px #ccc;
background: linear-gradient(to right, black 50%, transparent 50% 100%) 0 100% / 20%;
}
.background1 {
width: 200px;
height: 200px;
box-shadow: 2px 0px 10px #ccc;
background: linear-gradient(45deg, grey 25%, transparent 25% 75%, grey 75% 100%) 0 0 / 10% 10%,
linear-gradient(-45deg, grey 25%, transparent 25% 75%, grey 75% 100%) 100% 100% / 10% 10%;
}
.background2 {
width: 200px;
height: 200px;
box-shadow: 2px 0px 10px #ccc;
background: linear-gradient(45deg, grey 25%, transparent 25% 75%, grey 75% 100%) 0 0 / 10% 10%,
linear-gradient(45deg, grey 25%, transparent 25% 75%, grey 75% 100%) 50% 50% / 10% 10%;
}