:doodle {
@grid: 10 / 100%;
}
:after {
content: '@pick-n(哦, 噢, 喔)';
font-size:6vmax;
font-family:'@pick([1-7])';
color:rgba(0,0,0,@rand(.2,.8));
}
transform: translate(
@rand(-50vw, 50vw),
@rand(-50vh, 50vh)
);
@place-cell: 50% 50%;
animation-name: explosion;
animation-iteration-count: infinite;
animation-direction: reverse;
animation-duration: calc(@rand(2s, 5s, .1));
animation-delay: calc(@rand(-5s, -1s, .1));
animation-timing-function:
cubic-bezier(.84, .02, 1, 1);
@keyframes explosion {
0% { opacity: 0; }
70% { opacity: 1; }
100% { transform: translate(0, 0); }
}