loader-petal($params) {
    width: 100px;
    height: 100px;

    i {
        left: 45px;
        top: 0;
        position: absolute;
        animation: petal-fade linear 1.2s infinite;
        background: $params.color;
        width: 8px;
        height: 40px;
        border-radius: 100%;
        transform-origin: 4px 50px;
        display: block;
    }

    i:nth-child(1) { 
        transform: rotate(0deg);
        animation-delay: 0s;
    }
    i:nth-child(2) {
        transform: rotate(60deg);
        animation-delay: 0.2s;
    }
    i:nth-child(3) {        
        transform: rotate(120deg);
        animation-delay: 0.4s;
    }
    i:nth-child(4) {        
        transform: rotate(180deg);
        animation-delay: 0.6s;
    }
    i:nth-child(5) {        
        transform: rotate(240deg);
        animation-delay: 0.8s;
    }
    i:nth-child(6) {        
        transform: rotate(300deg);
        animation-delay: 1s;
    }

    @keyframes petal-fade {
        0% {
            opacity: 1;
        }
        100% {
            opacity: 0;
        }
    }
}