zoukankan      html  css  js  c++  java
  • 3D旋转

    1

    html代码:

    <div class="box">
      <div class="div">1</div>
    </div>

     css代码:

    div{
                width: 200px;
                height: 200px;
                margin: 0 auto;
            }
            .box{
                margin-top: 100px;
                transform:perspective(500px);
                transform-style:preserve-3d;
                position: relative;
                border:1px solid #fff;               
            }
            .box div{
                background-color: #ff0000;
                position: absolute;
                font-size: 80px;
                line-height: 200px;
                text-align: center;
                top: 0;
                left: 0;
                animation:ms 2000ms infinite;
            }
            @keyframes ms{
                from{transform:rotatey(0deg)}
                to{transform:rotatey(360deg)}
                
            }
  • 相关阅读:
    业余时间决定人生
    单片机好网站
    坚持 放弃
    励志博客园网址
    资料下载好网站
    和易法
    二、栈
    一、顺序表
    uCOS任务中的OSTCBDly
    三(1)、队列(链队列)
  • 原文地址:https://www.cnblogs.com/ash-sky/p/9579171.html
Copyright © 2011-2022 走看看