首页 > Web开发 > 详细

CSS3 美女动画相框

时间:2015-04-23 12:42:50      阅读:267      评论:0      收藏:0      [点我收藏+]

 

把下面的内容放到一个body内,运行看一看:)

<style>
*{ margin:0; padding:0;}
.bg1{ background-image:-moz-linear-gradient(45deg,red 25%, transparent 25%,transparent 50%,red 50%, red 75%, transparent 75%, transparent); background-size:30px 30px;
animation:animate 0.5s linear infinite; transform:opacity 0.3s ease; height:200px; width:133px; padding:10px; margin:auto; position:absolute; top:0; right:0; bottom:0; left:0;}
@-webkit-keyframes animate{
    from{ background-position:0 0;}
    to{ background-position:60px 30px}
    }
@-moz-keyframes animate{
    from{ background-position:0 0;}
    to{ background-position:60px 30px}
    }
@keyframes animate{
    from{ background-position:0 0;}
    to{ background-position:60px 30px}
    }
</style>
<div class="bg1">
<img src="http://c.hiphotos.baidu.com/image/h%3D200/sign=2adf909ea94bd1131bcdb0326aaea488/0bd162d9f2d3572cf395e8318e13632763d0c3ec.jpg" alt="1" width="133" height="200" /></div>

 

CSS3 美女动画相框

原文:http://www.cnblogs.com/crafts/p/4449985.html

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