:doodle {
width: 100%; height:160px;
@grid: 40 x 12;
}
aspect-ratio: 1 / 1;
@match(i <= 40 * 2) {
background: #f0002e;
}
@match(i > 40 * 2 && i <= 40 * 6) {
background: @p(#f0002e, #000000, #f0002e, #000000, #f0002e, #000000, #f0002e, #f0002e);
}
@match(i > 40 * 6 ) {
background: @p(#f0002e, #000000, #000000, #000000, #000000, #000000, #000000, #000000, #000000);
}
border-radius: 20%;
animation-name: scale;
animation-duration: 1s;
animation-iteration-count: infinite;
animation-direction: alternate-reverse;
animation-delay: @rand(10s);
@keyframes scale {
from { transform: scale(0.1); opacity: .5;}
to {transform: scale(1); opacity: 1;}
}