CSS3掃描動畫效果

.swiper-animate {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 10;
    background: linear-gradient(to bottom, transparent, #3e88f1);
    animation: scan 1.5s ease-in-out infinite;
    -webkit-animation: scan 1.5s ease-in-out infinite;
}

@keyframes scan {
    from {
        top: -667px;
    }/*網格移動到顯示區域的外面*/
    to {
        top: 0;
    }
}

@-webkit-keyframes scan {
    from {
        top: -667px;
    }
    to {
        top: 0;
    }
}
相關文章
相關標籤/搜索