zoukankan      html  css  js  c++  java
  • css3实现倾斜转动的转盘

    HTML代码:

    <div class="r-1">a</div>
    <div class="r-2">a</div>
    

      

    CSS代码:

            .r-1{
                border: 1px solid red;
                text-align: center;color: #ffffff;line-height: 500px;vertical-align: middle;font-size: 50px;;
                position: absolute;
                 500px;height: 500px;
                top:0px;left:620px;
                background-image: url("resoureces/a.png");
                background-size: 100% 100%;
                background-repeat: no-repeat;
    
                animation: circleSmall 10s linear infinite;
            }
    
    .r-2{
        border: 1px solid red;
        text-align: center;color: #ffffff;line-height: 500px;vertical-align: middle;font-size: 50px;;
        position: absolute;
         500px;height: 500px;
        top:0px;left:20px;
        background-image: url("resoureces/a.png");
        background-size: 100% 100%;
        background-repeat: no-repeat;
    
        animation: circleSmall2 10s linear infinite;
    }
            /*旋转动画*/
    
            @-webkit-keyframes circleSmall{
    
                0%{
                    transform: rotateX(30deg) rotateY(-10deg) rotateZ(0deg);
                }
                100%{
                    transform: rotateX(30deg) rotateY(-10deg) rotateZ(360deg);
                }
            }
    
    @-webkit-keyframes circleSmall2{
         0% {
             -webkit-transform: rotate3d(0,0,.2,0deg);
         }
    
         100% {
             -webkit-transform: rotate3d(0,0,.2,360deg);
         }
    }
    

      

  • 相关阅读:
    异或运算的运用
    HDU1251(统计难题)
    待解决题目
    tarjan算法模板
    FZU1465
    边双联通分量(构造边双联通图)
    UVa 12558
    codeforce Error Correct System
    codeforce The Art of Dealing with ATM
    ~0u >> 1
  • 原文地址:https://www.cnblogs.com/pangchunlei/p/10830356.html
Copyright © 2011-2022 走看看