zoukankan      html  css  js  c++  java
  • CSS3 3D旋转动画代码实例

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <style>
    *{margin:0;
    padding:0;}
    .wrapper1{
    150px;
    height:191px;
    border:#eee 1px solid;
    border-radius:10px;
    padding:2px;
    float:left;
    margin:200px 0 0 50px;
    -moz-perspective:800px;
      -moz-transform-style:preserve-3d;
      -webkit-perspective:800px;
      -webkit-transform-style:preserve-3d;
      -moz-backface-visibility:;
        -webkit-backface-visibility:hidden;
    }
    .box1{
    150px;
    height:191px;
    background:url(http://p1.qhimg.com/t0151320b1d0fc50be8.png);
    border-radius:10px;
    -webkit-animation-name:wobble;
      -webkit-animation-duration: 5s;
      -webkit-animation-timing-function: linear;
      -webkit-animation-delay: 0;
      -webkit-animation-iteration-count: infinite;
      -webkit-animation-direction: ;
      -moz-animation-name:wobble;
      -moz-animation-duration: 5s;
      -moz-animation-timing-function: linear;
      -moz-animation-delay: 0;
      -moz-animation-iteration-count: infinite;
      -moz-animation-direction: ;
    }
    @-webkit-keyframes wobble{
         0% {
      -webkit-transform:rotateY(0deg) rotateX(0deg) rotateZ(0deg) translateZ(0px);
         }
         25% {
      -webkit-transform:rotateY(90deg) rotateX(0deg) rotateZ(0deg) translateZ(0px);
         }
         50% {
      -webkit-transform:rotateY(180deg) rotateX(0deg) rotateZ(0deg) translateZ(0px);
         }
         75% {
      -webkit-transform:rotateY(90deg) rotateX(0deg) rotateZ(0deg) translateZ(0px);
         }
         100% {
      -webkit-transform:rotateY(0deg) rotateX(0deg) rotateZ(0deg) translateZ(0px);
         }
      }
    @-moz-keyframes wobble{
         0% {
            -moz-transform:rotateY(0deg) rotateX(0deg) rotateZ(0deg) translateZ(0px);
         }
         25% {
            -moz-transform:rotateY(90deg) rotateX(0deg) rotateZ(0deg) translateZ(0px);
         }
         50% {
            -moz-transform:rotateY(180deg) rotateX(0deg) rotateZ(0deg) translateZ(0px);
         }
         75% {
            -moz-transform:rotateY(90deg) rotateX(0deg) rotateZ(0deg) translateZ(0px);
         }
         100% {
            -moz-transform:rotateY(0eg) rotateX(0deg) rotateZ(0deg) translateZ(0px);
         }
      }
    </style>
    </head>
    <body>
    <div><A href="http://www.999jiujiu.com/">http://www.999jiujiu.com/</A></div>
    <div class="wrapper1">
    <div class="box1"></div>
    </div>
    </body>
    </html>
  • 相关阅读:
    软阴影的实现(转帖)
    卡巴斯基:警惕IE拦截器恶意推广导航网站 狼人:
    安全问题拷问着电子支付第三方未来 狼人:
    微软警告:泄露的Office 2010预览版或含病毒 狼人:
    《越狱》完结 米帅迷应小心纹身网站挂马 狼人:
    赛门铁克和McAfee:目标锁定iPhone! 狼人:
    McAfee将与EMC合作推出在线PC备份服务 狼人:
    恶意软件分析师:面临社交网络威胁的用户已10亿 狼人:
    Mac OS X现漏洞 苹果称是Java导致恶意攻击 狼人:
    暴风影音声明:DNS服务器才是故障源头 狼人:
  • 原文地址:https://www.cnblogs.com/bhlsheji/p/5116232.html
Copyright © 2011-2022 走看看