首页 > 其他 > 详细

animation3 背景小动画笔记

时间:2017-05-07 12:19:44      阅读:292      评论:0      收藏:0      [点我收藏+]
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
        .ren {
            width: 48px;
            height: 70px;
            background: url(images/timg.jpg) no-repeat;
            animation: donghua 5s steps(10);
            overflow: hidden;
        }
        @keyframes donghua {
            0% {
                background-position: -8px 0;
            }
            100% {
                background-position: -460px 0;
            }
        }

    </style>
</head>
<body>
<div class="ren"></div>
</body>
</html>

 

animation3 背景小动画笔记

原文:http://www.cnblogs.com/-CLAY-/p/animation3.html

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