zoukankan      html  css  js  c++  java
  • css3表钟

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>弧形运动效果</title>
    <style type="text/css">
    body{
    margin:0;
    background:#111;
    text-align:center;
    }
    h1{
    font-size: 14px;
    font-family: "Microsoft Yahei";
    text-align: center;
    }
    .stage{
    120px;
    height:auto;
    margin:0 auto;
    position:relative;
    -webkit-transform-origin:center top;
    -webkit-transform:rotate(-30deg);
    -webkit-animation:sway 2.2s infinite alternate ease-in-out;
    }
    .watch{
    100%;
    height:auto;
    }
    .seconds{
    position:absolute;
    8%;
    height:auto;
    bottom:11.5%;
    left:45.5%;
    -webkit-transform-origin:center 72.4%;
    -webkit-animation:second 60s infinite linear;
    }
    @-webkit-keyframes second{
    to{
    -webkit-transform:rotate(355deg);
    }
    }
    @-webkit-keyframes sway{
    to{
    -webkit-transform:rotate(30deg);
    }
    }
    </style>
    </head>
    <body>
    <h1>请使用webkit内核标准浏览器查看效果</h1>
    <div class="stage">
    <img src="http://p0.qhimg.com/t0197c451833414523e.png" alt="钟表" class="watch"/>
    <img src="http://p9.qhimg.com/t0145f1ae8ad6753b05.png" alt="秒针" class="seconds">
    </div>
    </body>
    </html>

  • 相关阅读:
    异常流
    动手动脑7
    《大道至简七八章》
    接口与继承-动手动脑
    《大道至简第六章》读后感
    随机数存放到数组并求和
    《大道至简第五章》

    echo
    mount命令
  • 原文地址:https://www.cnblogs.com/liulua/p/6868548.html
Copyright © 2011-2022 走看看