首页 > 其他 > 详细

animation循环滚动

时间:2017-07-06 00:54:40      阅读:355      评论:0      收藏:0      [点我收藏+]

css3 简单循环滚动

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        @keyframes lbody {
            0% {
                transform: translate3d(0, 0, 0);
            }
            100% {
                transform: translate3d(0, -520px, 0);       //滚动内容div高度和
            }
        }
        .box{
            width: 800px;
            border: 1px solid #000000;
            position: absolute;
            height: 500px;
            overflow: hidden;
        }
        .box .lbody{
            animation: 15s lbody linear infinite normal;
            position: absolute;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="lbody">
            <div><img  width="800" height="100" style="background-color: #0002ff"></div>
            <div><img  width="800" height="100" style="background-color: #00fff7"></div>
            <div><img  width="800" height="100" style="background-color: #4bff00"></div>
            <div><img  width="800" height="100" style="background-color: #ffe500"></div>
            <div><img  width="800" height="100" style="background-color: #ff0900"></div>

            <div><img  width="800" height="100" style="background-color: #0002ff"></div>
            <div><img  width="800" height="100" style="background-color: #00fff7"></div>
            <div><img  width="800" height="100" style="background-color: #4bff00"></div>
            <div><img  width="800" height="100" style="background-color: #ffe500"></div>
            <div><img  width="800" height="100" style="background-color: #ff0900"></div>
        </div>
    </div>
</body>
</html>

  

animation循环滚动

原文:http://www.cnblogs.com/liangjj/p/7124184.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!