zoukankan      html  css  js  c++  java
  • 图片缩小右移旋转

            图片在缩小右移的同时旋转720度效果图

     1     <style>
     2         body{
     3             position: relative;
     4         }
     5         #box img{
     6             width: 300px;
     7             position: absolute;
     8             height: 300px;
     9             background: #f88e11;
    10             -webkit-transform-origin: center center;
    11             -moz-transform-origin: center center;
    12             -ms-transform-origin: center center;
    13             -o-transform-origin: center center;
    14             transform-origin: center center;
    15             /*border-radius: 50%;*/
    16             /*animation: smaller 5s linear infinite;*/
    17             -webkit-animation:smaller 3s linear infinite;
    18             -o-animation:smaller 3s linear infinite;
    19             animation:smaller 3s linear infinite;
    20         }
    21         @keyframes smaller{
    22             0%{
    23                 left: 0px;
    24                 top: 100px;
    25                 width: 480px;
    26                 height: 300px;
    27                 -webkit-transform: rotate(0deg);
    28                 -moz-transform: rotate(0deg);
    29                 -ms-transform: rotate(0deg);
    30                 -o-transform: rotate(0deg);
    31                 transform: rotate(0deg);
    32             }
    33           
    34             100%{
    35                 left: 700px;
    36                 top: 0;
    37                 width: 0px;
    38                 height: 0;
    39                 -webkit-transform: rotate(720deg);
    40                 -moz-transform: rotate(720deg);
    41                 -ms-transform: rotate(720deg);
    42                 -o-transform: rotate(720deg);
    43                 transform: rotate(720deg);
    44             }
    45         }
    46     </style>
    1 <div id="box"><img src="1.jpg" alt="图片"></div>

    参考图:

    1.jpg

  • 相关阅读:
    Shell需注意的语法问题
    iconv编码转换
    使用cocos创建的项目,如何进行源码调试?
    git切换到远程分支
    在 Git 中 Checkout 历史版本
    JAVA keytool 使用详解
    JAVA调用 keytool 生成keystore 和 cer 证书
    写出好的 commit message
    JAVA
    面试中关于Java你所需知道的的一切
  • 原文地址:https://www.cnblogs.com/landen/p/7054975.html
Copyright © 2011-2022 走看看