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);
         }
    }
    

      

  • 相关阅读:
    编程总结2
    编程总结3
    《秋季学期学习总结》
    《人生路上对我影响最大的三位老师》
    第八周编程总结
    第七周编程总结
    第六周编程总结
    第五周作业
    第四周编程总结
    第三周编程总结
  • 原文地址:https://www.cnblogs.com/pangchunlei/p/10830356.html
Copyright © 2011-2022 走看看