svg {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    pointer-events: none;
}
svg.anim {
    animation: secondAnimation 10s linear forwards infinite;
}
@keyframes secondAnimation {
    0% {
        stroke-dasharray: 20;
        stroke-dashoffset: 20;
    }
    30% {
        stroke-dasharray: 20;
        stroke-dashoffset: 200;
    }
    50% {
        stroke-dasharray: 60;
        stroke-dashoffset: 400;
    }
    80% {
        stroke-dasharray: 30;
        stroke-dashoffset: 200;
    }
    100% {
        stroke-dasharray: 20;
        stroke-dashoffset: 20;
    }
}
