:doodle {
@grid: 20 / 100vmax;
background: black;
}
@shape: star;
background: hsla(0,0%,100%,@rand(0,1));
transform:
scale(@rand(0.1, 0.35)) translate(
@rand(-500%, 500%), @rand(-1000%, 500%)
);
--delay: calc(@rand(@row() / @col() * @rand(@row()/@row())) * -@rand(2.2s));
opacity: @rand(0.5, 1);
animation: twinkle 2s linear var(--delay) infinite reverse;
@keyframes twinkle{
60% {
background-color: black;
opacity : 0;
transform:scale(2);
}
}