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

  • 相关阅读:
    yum puppet dashboard
    puppet常用调试命令
    mysql oracle静默 一键安装脚本
    libvirt 基于C API基本使用案例
    mysql二进制
    mysql启动停止,一台服务器跑 多个mysql数据库
    mysql binaryVInstall
    Centos6.x/Oracle11G 自动化静默安装配置脚本
    最受欢迎linux命令
    xpages很不错的demo
  • 原文地址:https://www.cnblogs.com/landen/p/7054975.html
Copyright © 2011-2022 走看看