Antrium A35D

Bir sonraki için en iyisini yap...

Loading animasyonu, Loading animation

HTML kodumuz;

 <div class="ring"><img src="/Content/logo.png" class="img-fluid"><span></span></div>

 

CSS kodumuz;

.ring {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 150px;
    height: 150px;
    background: transparent;
    border: 3px solid #ededed;
    border-radius: 50%;
    text-align: center;
    line-height: 141px;
    box-shadow: 0 0 8px rgba(0,0,0,.5);
    background-color: #fff;
    z-index: 33000;
}

    .ring:before {
        content: '';
        position: absolute;
        top: 0px;
        left: 0px;
        width: 100%;
        height: 100%;
        border: 3px solid transparent;
        border-top: 3px solid #208314;
        border-right: 3px solid #208314;
        border-radius: 50%;
        animation: animateC 2s linear infinite;
    }

    .ring span {
        display: block;
        position: absolute;
        top: calc(50% - 2px);
        left: 50%;
        width: 50%;
        height: 4px;
        background: transparent;
        transform-origin: left;
        animation: animate 2s linear infinite;
    }

    .ring img {
        max-width: 105px;
    }

    .ring span:before {
        content: '';
        position: absolute;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #208314;
        top: -3px;
        right: -4px;
        box-shadow: 0 0 20px #208314;
    }

@keyframes animateC {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes animate {
    0% {
        transform: rotate(45deg);
    }

    100% {
        transform: rotate(405deg);
    }
}

Javascript kodumuz;

    const tm001 = setTimeout(set001, 500);
    function set001() {
        $(".ring").fadeOut(500);

    }

    $('body').animate({
        opacity: '1'
    }, 500);

 

168 Okunma | 3.08.2023 13:05

YORUMLAR

Yorum Yaz
Hüseyin ÖZKAN Yazılım Uzmanı

C#,MVC,MSSQL,Windows Forms