animarte
Version:
Making the digital world a little more animated place
48 lines (46 loc) • 979 B
CSS
.animarte {
position: relative;
isolation: isolate;
box-sizing: border-box;
overflow: hidden;
flex-shrink: 0;
width: var(--animarte-size);
height: var(--animarte-size);
color: var(--animarte-color);
}
.animarte-lines--agitated-1 .animarte-lines__element {
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
background: color-mix(in srgb, currentColor 30%, transparent);
border-radius: 100vw;
width: 100%;
height: 10%;
}
.animarte-lines--agitated-1 .animarte-lines__element::before {
content: "";
position: absolute;
inset: 0;
border-radius: 100vw;
background: currentColor;
animation-name: linesAgited1;
animation-timing-function: ease-in-out;
animation-duration: var(--animarte-speed);
animation-iteration-count: infinite;
animation-direction: alternate;
}
@keyframes linesAgited1 {
0% {
left: 0;
width: 0;
}
50% {
left: 0;
width: 100%;
}
100% {
left: 100%;
width: 0;
}
}