body {
background-color: #fefefe;
height: 100vh;
display: grid;
grid-template-columns: repeat(2, 1fr);
justify-items: center;
align-items: center;
}
.background1 {
width: fit-content;
height: fit-content;
font-weight: bold;
font-size: 30px;
padding: 8px 5px;
background: repeating-linear-gradient(90deg, currentColor 0 8%, #0000 0 10%) 200% 100% / 200% 3px no-repeat;
animation: l3 2s steps(6) infinite;
}
.background1::before {
content: 'Loading...'
}
@keyframes l3 {
to {
background-position: 80% 100%
}
}
.background2 {
width: 200px;
height: 200px;
background: repeating-linear-gradient(red 0 10%, green 10% 20%, blue 20% 30%, gold 30% 40%);
}