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;
    }
}

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM