• cs3 动画


    例:

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title></title>
    <style>
    #clock{
    400px;
    height: 400px;
    border: 1px solid red;
    border-radius: 50%;
    /*分 秒 相对表的定位*/
    position: relative;
    }
    #minute{
    10px;
    height: 100px;
    background: black;
    position: absolute;
    top:100px;
    left:196px;
    }
    #second{
    6px;
    height: 140px;
    background: blue;
    position: absolute;
    left:196px;
    top:60px;
    /*更换圆心点*/
    transform-origin:bottom;
    /*添加过渡*/
    transition:transform 10s linear 0s;
    }
    #second:hover{
    transform: rotate(360deg);
    }
    #minute{
    transform-origin:bottom;
    /*添加过渡*/
    transition:transform 60s linear 0s;
    }
    #minute:hover{
    transform: rotate(360deg);
    }
    </style>
    </head>
    <body>
    <div id="clock">
    <div id="minute"></div>
    <div id="second"></div>
    </div>
    </body>
    </html>

  • 相关阅读:
    标准函数头部注释
    排序
    #define _INTSIZEOF(n)
    并发编程资料
    memory model
    Ubuntu搜狗输入法的使用
    gprof
    xml_editor
    创建本地Ubuntu镜像
    设计模式9:建造者模式
  • 原文地址:https://www.cnblogs.com/mpenghao/p/11060861.html
Copyright © 2020-2023  润新知