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